[1.32] CCGPU - A GPU addon for ComputerCraft
Mast3rPlan 30 Mar 2012
Description
The CCGPU peripheral is an addon for ComputerCraft which allows you to do OpenGL operations within computercraft using Lua. The peripheral currently comes with two elements: a GPU peripheral and a Monitor output device.
Download Requirements
You simply unzip the contents to your mods folder.
The instalation is exactly the same as ComputerCraft.
Screenshots
Crafting
GPU recipe.
Monitor recipe.
Usage
You simply place a GPU next to a computer.
To link a monitor to a gpu you change it's frequency to the corresponding GPU id.
You can get the gpu id using gpu.getID()
Examples
and then loading them using gpu.loadRenderCode( path )
Documentation
You can find the latest documentation on the wiki.
Community
Feel free to join our irc channel on EsperNet: #CCGPU (to do so, click here)
Changelog
The CCGPU peripheral is an addon for ComputerCraft which allows you to do OpenGL operations within computercraft using Lua. The peripheral currently comes with two elements: a GPU peripheral and a Monitor output device.
Download Requirements
- ComputerCraft
- A decent PC
- Latest video drivers
- OpenGL FBO support
You simply unzip the contents to your mods folder.
The instalation is exactly the same as ComputerCraft.
Screenshots
Spoiler
Crafting
GPU recipe.
Monitor recipe.
Usage
You simply place a GPU next to a computer.
To link a monitor to a gpu you change it's frequency to the corresponding GPU id.
You can get the gpu id using gpu.getID()
Examples
- Simple multi-color square. (code)
and then loading them using gpu.loadRenderCode( path )
Documentation
You can find the latest documentation on the wiki.
Community
Feel free to join our irc channel on EsperNet: #CCGPU (to do so, click here)
Changelog
- v1.1
- Fixed transparent monitor bug
- Fixed monitor tile entity name ambiguity
- Added Projectors
- SMP Support
- Fixed transparent monitor bug
- v1.0
- Initial release
- Added a GPU peripheral
- Added a Graphical Output Device called Graphics Monitor
- Implemented simple OpenGL API
- Initial release
Mast3rPlan 30 Mar 2012
xuma202 30 Mar 2012
You have to use the code like this:
gpu.setRenderCode([[ gpuBindOutputBuffer(1) gpuClearBuffer() glBegin(GL_QUADS) do glColor3f(1, 0, 0) glVertex2f(32, 32) glColor3f(0, 1, 0) glVertex2f(96, 32) glColor3f(0, 0, 1) glVertex2f(96, 96) glColor3f(0, 1, 0) glVertex2f(32, 96) end glEnd() ]])
vvenaya 30 Mar 2012
Good first alpha, one crashing issue i noticed is that when you save/reload your world, the graphic monitors turn transparant, and rightclicking results in :
http://pastebin.com/5QW4pQqH
http://pastebin.com/5QW4pQqH
Mast3rPlan 30 Mar 2012
vvenaya, on 30 March 2012 - 04:58 PM, said:
Good first alpha, one crashing issue i noticed is that when you save/reload your world, the graphic monitors turn transparant, and rightclicking results in :
http://pastebin.com/5QW4pQqH
http://pastebin.com/5QW4pQqH
I'll be fixing that bug for the next version.
Mast3rPlan 30 Mar 2012
Wolvan 31 Mar 2012
Buttmuncher, on 31 March 2012 - 04:17 AM, said:
OMG WHEN I TRY THE CODE OR ANYTHING FROM THIS MOD IT DOESNT WORK! IT SAYS ATTEMPT TO CALL NIL! I HATE YOU!
POST A PERIPHERAL THAT WORKS!
PLEASE!
POST A PERIPHERAL THAT WORKS!
PLEASE!
Mast3rPlan 31 Mar 2012
Buttmuncher, on 31 March 2012 - 04:17 AM, said:
OMG WHEN I TRY THE CODE OR ANYTHING FROM THIS MOD IT DOESNT WORK! IT SAYS ATTEMPT TO CALL NIL! I HATE YOU!
POST A PERIPHERAL THAT WORKS!
PLEASE!
POST A PERIPHERAL THAT WORKS!
PLEASE!
You might want to read this line:
"You can test these examples by saving them under a certain file name,
and then loading them using gpu.loadRenderCode( path )"
If you're already doing so, reboot your terminal.
Mast3rPlan 31 Mar 2012
Mast3rPlan 31 Mar 2012
Espen 31 Mar 2012
Mast3rPlan 31 Mar 2012
Haha, absolutely true.
vvenaya 31 Mar 2012
Mads 31 Mar 2012
It would be sooo awesome, if we could use this peripheral with CC monitors, so we could have giant screens!
But anyway, REALLY awesome peripheral, I'm soo much trying this!
Thanks for making CC alot better />
But anyway, REALLY awesome peripheral, I'm soo much trying this!
Thanks for making CC alot better />
Dirkus7 31 Mar 2012
Mast3rPlan, on 30 March 2012 - 09:51 PM, said:
Interesting could you supply me with your coords and the coords of the monitor and gpu as well as a description of when this occurs?