This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mast3rPlan's profile picture

[1.32] CCGPU - A GPU addon for ComputerCraft

Started by Mast3rPlan, 30 March 2012 - 12:35 PM
Mast3rPlan #1
Posted 30 March 2012 - 02:35 PM
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.

DownloadRequirements
  • ComputerCraft
  • A decent PC
  • Latest video drivers
  • OpenGL FBO support
Installation
You simply unzip the contents to your mods folder.
The instalation is exactly the same as ComputerCraft.

Screenshots
Spoiler


(Check out the thread here)

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)
You can test these examples by saving them under a certain file name,
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
  • v1.0
    • Initial release
    • Added a GPU peripheral
    • Added a Graphical Output Device called Graphics Monitor
    • Implemented simple OpenGL API
xuma202 #2
Posted 30 March 2012 - 03:06 PM
This is defiantly awesome soon we can create 3D MC in MC
Mast3rPlan #3
Posted 30 March 2012 - 03:25 PM
This is defiantly awesome soon we can create 3D MC in MC
Exactly, 3D support is coming in the next update!
TNTeener #4
Posted 30 March 2012 - 03:43 PM
I get error in Multiple Color Square:
"gpu:1:attempt to call nill"
xuma202 #5
Posted 30 March 2012 - 03:54 PM
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 #6
Posted 30 March 2012 - 05:58 PM
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
Mast3rPlan #7
Posted 30 March 2012 - 06:00 PM
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

I'll be fixing that bug for the next version.
Wolvan #8
Posted 30 March 2012 - 06:02 PM
OMG EPIC! That's what much people always wanted
Dirkus7 #9
Posted 30 March 2012 - 08:12 PM
It's still a little buggy, got the same as vvenaya got, and i got this:
Mast3rPlan #10
Posted 30 March 2012 - 10:51 PM
It's still a little buggy, got the same as vvenaya got, and i got this:

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?
djblocksaway #11
Posted 31 March 2012 - 04:43 AM
This is amazing Nice work Master cant wait for the next update
Wolvan #12
Posted 31 March 2012 - 08:32 AM
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!
Why does everyone has to be rude and hate the modder if something doesn't work? Post us line of the code you code and so on
Mast3rPlan #13
Posted 31 March 2012 - 11:33 AM
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!

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 #14
Posted 31 March 2012 - 11:35 AM
This is amazing Nice work Master cant wait for the next update

Thanks man!
Next update will hopefully have 3D support (aka. support for changing the viewport) and translation matrix support.
Mast3rPlan #15
Posted 31 March 2012 - 11:41 AM
OMG EPIC! That's what much people always wanted

If you have any suggestions, PM me on the forums and/or IRC channel! :o/>/>
Espen #16
Posted 31 March 2012 - 02:20 PM
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!
Nomen est omen. :o/>/>
Mast3rPlan #17
Posted 31 March 2012 - 04:48 PM
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!
Nomen est omen. :o/>/>
Haha, absolutely true.
vvenaya #18
Posted 31 March 2012 - 05:21 PM
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!
Nomen est omen. :o/>/>
Haha, absolutely true.

Well atleast the retard added "PLEASE", though in caps ;P
Mads #19
Posted 31 March 2012 - 06:13 PM
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 :o/>/>
Dirkus7 #20
Posted 31 March 2012 - 06:22 PM
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?
It's not on only one location, it follows the cursor constantly, and it only occurs facing one side. It was gone when i reloaded my world. I forgot how i made this happen, sorry :o/>/>
xuma202 #21
Posted 31 March 2012 - 07:04 PM
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 :o/>/>

Mast3rPlan has already planed Projectors for the next update.

The're going to be much bigger than the monitors. Maybe they will project on 6x8 Blocks and they're going to have a much higher resolution.

More planed features: here
vvenaya #22
Posted 31 March 2012 - 07:33 PM
Seems like i run into another bug, while rebooting my computer (the CC computer with CTRL-R)

http://pastebin.com/SgtkeHGB
vvenaya #23
Posted 31 March 2012 - 07:38 PM
VV entertaining himself with ccGPU :

Animating linegraph




local MAXSETSIZE=110
local dataSet={}


function addData(value)
   table.insert(dataSet,1,value)
   if #dataSet==(MAXSETSIZE+1) then
	 table.remove(dataSet,#dataSet)
   end
end

local function getVertex(x,y)
return "glVertex2f("..x..","..y..") "
end

local function getLineVertex(x1,y1,x2,y2)
   return getVertex(x1,y1)..getVertex(x2,y2)
end

local function getRenderCode()
local renderCode=[[
gpuBindOutputBuffer(1)
gpuClearBuffer()
glBegin(1)
do
glColor3f(1, 1, 0)
]]


renderCode=renderCode..getLineVertex(5,2,5,110)
renderCode=renderCode..getLineVertex(5,110,120,110)

for n=110,5,-10 do
renderCode=renderCode..getLineVertex(2,n,5,n)
end

for n=5,120,10 do
renderCode=renderCode..getLineVertex(n,110,n,115)
end

for n=1,#dataSet-1 do
renderCode=renderCode..getLineVertex(6+n,110-dataSet[n],7+n,110-dataSet[n+1])
end

renderCode=renderCode..[[
end
glEnd()
]]
return renderCode
end

local frame=0
local currentValue=0

while true do
frame=frame+1
	gpu.setRenderCode(getRenderCode())
if frame%100==0 then
sleep(0.1)
end
if math.random(10)<=5 and currentValue>0 then
currentValue=currentValue-1
elseif currentValue<120 then
   currentValue=currentValue+1
end
addData(currentValue)
end






lukeplechaty #24
Posted 31 March 2012 - 08:15 PM

Mast3rPlan can you back port this to 1.2.3 please it wood be much appreciated think you
FuzzyPurp #25
Posted 31 March 2012 - 09:36 PM
I released a backport for MC 1.2.3 :o/>/>
vvenaya #26
Posted 31 March 2012 - 10:01 PM
Variable text on ccGPU display as a demo that anything is possible


SCREENSHOT:



CODE:
Spoiler



characterData={
c32={16},
c33={10,5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2},
c34={16,4,21,4,14,-1,-1,12,21,12,14},
c35={21,11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6},
c36={20,8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3},
c37={24,21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7},
c38={26,23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2},
c39={10,5,19,4,20,5,21,6,20,6,18,5,16,4,15},
c40={14,11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7},
c41={14,3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7},
c42={16,8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12},
c43={26,13,18,13,0,-1,-1,4,9,22,9},
c44={10,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4},
c45={26,4,9,22,9},
c46={10,5,2,4,1,5,0,6,1,5,2},
c47={22,20,25,2,-7},
c48={20,9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21},
c49={20,6,17,8,18,11,21,11,0},
c50={20,4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0},
c51={20,5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4},
c52={20,13,21,3,7,18,7,-1,-1,13,21,13,0},
c53={20,15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4},
c54={20,16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7},
c55={20,17,21,7,0,-1,-1,3,21,17,21},
c56={20,8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21},
c57={20,16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3},
c58={10,5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2},
c59={10,5,14,4,13,5,12,6,13,5,14},
c60={24,20,18,4,9,20,0},
c61={26,4,12,22,12,-1,-1,4,6,22,6},
c62={24,4,18,20,9,4,0},
c63={18,3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13, 12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2},
c64={27,18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16, 6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8, 17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12, 21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0, 15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5},
c65={18,9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7},
c66={21,4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13, 11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0},
c67={21,18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5, 3,7,1,9,0,13,0,15,1,17,3,18,5},
c68={21,4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16, 3,14,1,11,0,4,0},
c69={19,4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0},
c70={18,4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11},
c71={21,18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5, 3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8},
c72={22,4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11},
c73={8,4,21,4,0},
c74={16,12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7},
c75={21,4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0},
c76={17,4,21,4,0,-1,-1,4,0,16,0},
c77={24,4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0},
c78={22,4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0},
c79={22,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15, 1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21},
c80={21,4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13, 10,4,10},
c81={22,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15, 1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4, 18},
c82={21,4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13, 11,4,11,-1,-1,11,11,18,0},
c83={20,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15, 9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3},
c84={16,8,21,8,0,-1,-1,1,21,15,21},
c85={22,4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21},
c86={18,1,21,9,0,-1,-1,17,21,9,0},
c87={24,2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0},
c88={20,3,21,17,0,-1,-1,17,21,3,0},
c89={18,1,21,9,11,9,0,-1,-1,17,21,9,11},
c90={20,17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0},
c91={14,4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7},
c92={14,0,21,14},
c93={14,9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7},
c94={16,6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0},
c95={16,0,-2,16,-2},
c96={10,6,21,5,20,4,18,4,16,5,15,6,16,5,17},
c97={19,15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4, 3,6,1,8,0,11,0,13,1,15,3},
c98={19,4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15, 3,13,1,11,0,8,0,6,1,4,3},
c99={18,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11, 0,13,1,15,3},
c100={19,15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4, 3,6,1,8,0,11,0,13,1,15,3},
c101={18,3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4, 3,6,1,8,0,11,0,13,1,15,3},
c102={12,10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14},
c103={19,15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8, 14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3},
c104={19,4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0},
c105={8,3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0},
c106={10,5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7},
c107={17,4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0},
c108={8,4,21,4,0},
c109={30,4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15, 10,18,13,20,14,23,14,25,13,26,10,26,0},
c110={19,4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0},
c111={19,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16, 6,16,8,15,11,13,13,11,14,8,14},
c112={19,4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15, 3,13,1,11,0,8,0,6,1,4,3},
c113={19,15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4, 3,6,1,8,0,11,0,13,1,15,3},
c114={13,4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14},
c115={17,14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14, 3,13,1,10,0,7,0,4,1,3,3},
c116={12,5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14},
c117={19,4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0},
c118={16,2,14,8,0,-1,-1,14,14,8,0},
c119={22,3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0},
c120={17,3,14,14,0,-1,-1,14,14,3,0},
c121={16,2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7},
c122={17,14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0},
c123={14,9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7, 24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3, 8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5, -1,5,-3,6,-5,7,-6,9,-7},
c124={8,4,25,4,-7},
c125={14,5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7, 24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3, 6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9, -1,9,-3,8,-5,7,-6,5,-7},
c126={24,3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12}
}

local function getVertex(x,y)
return "glVertex2f("..x..","..y..") "
end

local function getLineVertex(x1,y1,x2,y2)
   return getVertex(x1,y1)..getVertex(x2,y2)
end

local function getCharacter(character,scale,xoffset,yoffset)
  local code=""
  local data=characterData["c"..character]
  if data then
	local wd=data[1]  
	local prevX=-1
	local prevY=-1
	local n=2
	while data[n] and data[n+1] do
	  local x=data[n]
	  local y=data[n+1]
	  if (prevX~=-1) and (x~=-1)  then
		code=code..getLineVertex(xoffset+(prevX*scale),yoffset-prevY*scale,xoffset+x*scale,yoffset-y*scale)
	  end
	  prevX=x
	  prevY=y
	  n=n+2
	end
	return code, wd*scale
  else
	return "",0
  end
end

local function getText(text,scale,xoffset,yoffset)
local code=""
for n=1,text:len() do
  local c=string.byte(string.sub(text,n,n))
	 charcode,charwidth = getCharacter(c,scale, xoffset,yoffset)
  xoffset=xoffset+charwidth
  code=code..charcode
end  
return code
end

local function getColor(r,g,:o/>/>
  return "glColor3f("..r..", "..g..", "..b..")"
end

local function getRenderCode()
local renderCode=
[[
   gpuBindOutputBuffer(1)
   gpuClearBuffer()
   glBegin(1)
do  
]]
   renderCode=renderCode..getColor(1,0,0)
   renderCode=renderCode..getText("Made by VV",0.6,5,30)
   renderCode=renderCode..getColor(1,0.5,0)
   renderCode=renderCode..getText("Variable Text Size is COOL",0.27,8,45)
   renderCode=renderCode..getColor(0.2,0.5,1)
   renderCode=renderCode..getText("CCGpu by Mast3rPlan",0.33,8,60)
   renderCode=renderCode..[[
	end
	glEnd()
  ]]

  return renderCode
end

gpu.setRenderCode(getRenderCode())




lukeplechaty #27
Posted 31 March 2012 - 10:07 PM
bug 1:
when i save and quit minecraft and restarted it the gpu moniters lost the frunt texter and if i right click minecraft crash
SpoilerC:UsersLukeDesktop>java -jar d:Minecraftminecraft.jar
27 achievements
177 recipes
Setting user: lukeplechaty, 8498121753542418684
ModLoader 1.2.3 Initializing…
Mod Initialized: mod_ModLoaderMp 1.2.3v3
Mod Initialized: mod_MinecraftForge 1.4.1.61
Mod Initialized: mod_NotEnoughItems 1.1.3
Mod Initialized: mod_Backpack 1.2.3_v2-3
Mod Initialized: mod_BuildCraftCore 3.1.4
Mod Initialized: mod_BuildCraftBuilders 3.1.4
Mod Initialized: mod_BuildCraftEnergy 3.1.4
Mod Initialized: mod_BuildCraftFactory 3.1.4
Mod Initialized: mod_BuildCraftTransport 3.1.4
Mod Initialized: mod_BuildCraftSilicon 3.1.4
Mod Initialized: mod_CCGPU 1.0
Mod Initialized: mod_ClayMan 1.2.3 v.6_03
ComputerCraft: turtleBlockID 209
CONFLICT @ -47
ModLoaderMP 1.0.0 Initialized
Mod Initialized: mod_CCTurtle 1.31
Loading ComputerCraft: To change block IDs, modify config/mod_ComputerCraft.cfg
ComputerCraft: computerBlockID 207
ComputerCraft: diskDriveBlockID 208
ComputerCraft: diskItemID 4000
CONFLICT @ -49
CONFLICT @ -48
Mod Initialized: mod_ComputerCraft 1.31
Mod Initialized: Dragon Mounts 0.8pre
CONFLICT @ 26
MinecraftForge v1.4.1.61 Initialized
Mar 31, 2012 9:47:57 PM forge.ForgeHooks <clinit>
INFO: MinecraftForge v1.4.1.61 Initialized
Mod Initialized: mod_hay 14.0
Mod Initialized: mod_IC2 v1.81
Mod Initialized: mod_PigbearLaser 1.4
Mod Initialized: mod_IronChest 3.0
Overriding /terrain.png with /morePistons/doublePistonExtension.png @ 168. 34 le
ft.
Overriding /terrain.png with /morePistons/doublePistonSide.png @ 169. 33 left.
Overriding /terrain.png with /morePistons/doublePistonBack.png @ 170. 32 left.
Overriding /terrain.png with /morePistons/triplePistonExtension.png @ 171. 31 le
ft.
Overriding /terrain.png with /morePistons/triplePistonSide.png @ 172. 30 left.
Overriding /terrain.png with /morePistons/triplePistonBack.png @ 173. 29 left.
Overriding /terrain.png with /morePistons/quadPistonExtension.png @ 184. 28 left
.
Overriding /terrain.png with /morePistons/quadPistonSide.png @ 185. 27 left.
Overriding /terrain.png with /morePistons/quadPistonBack.png @ 186. 26 left.
Overriding /terrain.png with /morePistons/pistonRod.png @ 187. 25 left.
Overriding /terrain.png with /morePistons/pistonRodTop.png @ 188. 24 left.
Mod Initialized: mod_MorePistons v0.8 for [1.2.3]
CONFLICT @ -1
Mod Initialized: mod_ores 0
Mod Initialized: mod_Railcraft 4.1.3
Mod Initialized: mod_RedPowerArray 2.0pr4d
Mod Initialized: mod_RedPowerCore 2.0pr4e
Mod Initialized: mod_RedPowerLighting 2.0pr4e
Mod Initialized: mod_RedPowerLogic 2.0pr4e
Mod Initialized: mod_RedPowerWiring 2.0pr4e
Mod Initialized: mod_stevescarts 1.2.0
Mod Initialized: mod_treecapitator 1.2.3.a updated by bspkrs
Mod Initialized: WirelessRedstone 1.5
Mod Loaded: mod_ModLoaderMp 1.2.3v3
Mod Loaded: mod_MinecraftForge 1.4.1.61
Loaded NotEnoughItems: 516875678
Mod Loaded: mod_NotEnoughItems 1.1.3

*** Loading BACKPACK mod by MightyPork ***
…visit PlanetMinecraft.com to see my other mods!

Overriding /gui/items.png with /backpack/backpack.png @ 38. 84 left.
Mod Loaded: mod_Backpack 1.2.3_v2-3
Mod Loaded: mod_BuildCraftCore 3.1.4
Mod Loaded: mod_BuildCraftBuilders 3.1.4
Mod Loaded: mod_BuildCraftEnergy 3.1.4
Mod Loaded: mod_BuildCraftFactory 3.1.4
Mod Loaded: mod_BuildCraftTransport 3.1.4
Mod Loaded: mod_BuildCraftSilicon 3.1.4
Mod Loaded: mod_CCGPU 1.0
Overriding /gui/items.png with /claymans/disruptor.png @ 102. 83 left.
Overriding /gui/items.png with /claymans/doll.png @ 118. 82 left.
Overriding /gui/items.png with /claymans/dollHorse.png @ 119. 81 left.
Overriding /gui/items.png with /claymans/dollPegasus.png @ 120. 80 left.
Overriding /gui/items.png with /claymans/dollBrick.png @ 134. 79 left.
Overriding /gui/items.png with /claymans/noms.png @ 144. 78 left.
Overriding /gui/items.png with /claymans/shield.png @ 145. 77 left.
Overriding /gui/items.png with /claymans/shields.png @ 146. 76 left.
Overriding /gui/items.png with /claymans/dollTurtle.png @ 147. 75 left.
Overriding /gui/items.png with /claymans/dollMelon.png @ 148. 74 left.
Overriding /gui/items.png with /claymans/dollPumpkin.png @ 149. 73 left.
Overriding /gui/items.png with /claymans/wing.png @ 150. 72 left.
Overriding /gui/items.png with /claymans/dollShell.png @ 152. 71 left.
Mod Loaded: mod_ClayMan 1.2.3 v.6_03
ComputerCraft: Searching for RedPowerLib…
ComputerCraft: RedPowerLib and methods located.
Mod Loaded: mod_CCTurtle 1.31
Mod Loaded: mod_ComputerCraft 1.31
CONFLICT @ -134
Mod Loaded: Dragon Mounts 0.8pre
Mod Loaded: mod_hay 14.0
[IC2] Config loaded from C:UsersLukeAppDataRoaming.minecraftconfigIC2.cfg
[IC2] Using 32 audio sources.
Mod Loaded: mod_IC2 v1.81
151
154
Mod Loaded: mod_PigbearLaser 1.4
IronChest: MinecraftForge minor version mismatch, expecting 1.3.x, may lead to u
nexpected behavior
RegisterGUI error: inventoryType already registered.
Mod Loaded: mod_IronChest 3.0
Mod Loaded: mod_MorePistons v0.8 for [1.2.3]
Mod Loaded: mod_ores 0
Mod Loaded: mod_Railcraft 4.1.3
Mod Loaded: mod_RedPowerArray 2.0pr4d
Mod Loaded: mod_RedPowerCore 2.0pr4e
Mod Loaded: mod_RedPowerLighting 2.0pr4e
Mod Loaded: mod_RedPowerLogic 2.0pr4e
Mod Loaded: mod_RedPowerWiring 2.0pr4e
Mod Loaded: mod_stevescarts 1.2.0
Mod Loaded: mod_treecapitator 1.2.3.a updated by bspkrs
Overriding /terrain.png with /WirelessSprites/topOn.png @ 189. 23 left.
Overriding /terrain.png with /WirelessSprites/topOff.png @ 190. 22 left.
Overriding /terrain.png with /WirelessSprites/rxOn.png @ 191. 21 left.
Overriding /terrain.png with /WirelessSprites/rxOff.png @ 198. 20 left.
Overriding /terrain.png with /WirelessSprites/txOn.png @ 199. 19 left.
Overriding /terrain.png with /WirelessSprites/txOff.png @ 200. 18 left.
Mod Loaded: WirelessRedstone 1.5
Starting BuildCraft 3.1.4
Copyright © SpaceToad, 2011-2012
http://www.mod-buildcraft.com
[IC2] Loading IC2 submodule: bcIntegration31x
[IC2] BuildCraft integration module loaded
[IC2] Loading IC2 submodule: cgIntegration14x
[IC2] CraftGuide integration module loaded
[IC2] Loading IC2 submodule: neiIntegration11x
[IC2] NEI integration module loaded
[IC2] Portal Gun compatibility not loaded: java.lang.ClassNotFoundException: mod
_PortalGun
Done.
WARNING: Found unknown Windows version: Windows 7
Attempting to use default windows plug-in.
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Starting up SoundSystem…
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or
g)
OpenAL initialized.
last path , current path C:UsersLukeAppDataRoaming.minecraftsavesNew Worl
d–/backpacks.dat
java.lang.ClassCastException: dan200.computer.shared.TileEntityMonitor cannot be
cast to cc.gpu.shared.TileEntityMonitor
at cc.gpu.shared.BlockMonitor.b(BlockMonitor.java:56)
at aen.a(PlayerControllerSP.java:213)
at net.minecraft.client.Minecraft.c(Minecraft.java:1375)
at net.minecraft.client.Minecraft.k(Minecraft.java:1811)
at net.minecraft.client.Minecraft.x(Minecraft.java:842)
at net.minecraft.client.Minecraft.run(Minecraft.java:747)
at java.lang.Thread.run(Unknown Source)
Stopping!
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component
argument pData
at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source)
at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source)
at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source)
at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source)
at java.awt.Component.getGraphics(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)SoundSystem sh
utting down…
at java.awt.EventDispatchThread.run(Unknown Source)
Author: Paul Lamb, www.paulscode.com

C:UsersLukeDesktop>pause
Press any key to continue . . .
pic
Spoilerfrunt
Spoilerback
lukeplechaty #28
Posted 31 March 2012 - 10:44 PM
vvenaya your code dont work for me i keep geting (b:138: attempt to concatenate nill and string) it you text one
fix it
lukeplechaty #29
Posted 31 March 2012 - 10:52 PM
bug 2:
whan i brack a moniter minecraft crash
Spoiler
C:UsersLukeDesktop>java -jar d:Minecraftminecraft.jar
27 achievements
177 recipes
Setting user: lukeplechaty, 3702919759780221067
ModLoader 1.2.3 Initializing...
Mod Initialized: mod_ModLoaderMp 1.2.3v3
Mod Initialized: mod_MinecraftForge 1.4.1.61
Mod Initialized: mod_NotEnoughItems 1.1.3
Mod Initialized: mod_Backpack 1.2.3_v2-3
Mod Initialized: mod_BuildCraftCore 3.1.4
Mod Initialized: mod_BuildCraftBuilders 3.1.4
Mod Initialized: mod_BuildCraftEnergy 3.1.4
Mod Initialized: mod_BuildCraftFactory 3.1.4
Mod Initialized: mod_BuildCraftTransport 3.1.4
Mod Initialized: mod_BuildCraftSilicon 3.1.4
Mod Initialized: mod_CCGPU 1.0
Mod Initialized: mod_ClayMan 1.2.3 v.6_03
ComputerCraft: turtleBlockID 209
CONFLICT @ -47
ModLoaderMP 1.0.0 Initialized
Mod Initialized: mod_CCTurtle 1.31
Loading ComputerCraft: To change block IDs, modify config/mod_ComputerCraft.cfg
ComputerCraft: computerBlockID 207
ComputerCraft: diskDriveBlockID 208
ComputerCraft: diskItemID 4000
CONFLICT @ -49
CONFLICT @ -48
Mod Initialized: mod_ComputerCraft 1.31
Mod Initialized: Dragon Mounts 0.8pre
CONFLICT @ 26
MinecraftForge v1.4.1.61 Initialized
Mar 31, 2012 10:17:45 PM forge.ForgeHooks <clinit>
INFO: MinecraftForge v1.4.1.61 Initialized
Mod Initialized: mod_hay 14.0
Mod Initialized: mod_IC2 v1.81
Mod Initialized: mod_PigbearLaser 1.4
Mod Initialized: mod_IronChest 3.0
Overriding /terrain.png with /morePistons/doublePistonExtension.png @ 168. 34 le
ft.
Overriding /terrain.png with /morePistons/doublePistonSide.png @ 169. 33 left.
Overriding /terrain.png with /morePistons/doublePistonBack.png @ 170. 32 left.
Overriding /terrain.png with /morePistons/triplePistonExtension.png @ 171. 31 le
ft.
Overriding /terrain.png with /morePistons/triplePistonSide.png @ 172. 30 left.
Overriding /terrain.png with /morePistons/triplePistonBack.png @ 173. 29 left.
Overriding /terrain.png with /morePistons/quadPistonExtension.png @ 184. 28 left
.
Overriding /terrain.png with /morePistons/quadPistonSide.png @ 185. 27 left.
Overriding /terrain.png with /morePistons/quadPistonBack.png @ 186. 26 left.
Overriding /terrain.png with /morePistons/pistonRod.png @ 187. 25 left.
Overriding /terrain.png with /morePistons/pistonRodTop.png @ 188. 24 left.
Mod Initialized: mod_MorePistons v0.8 for [1.2.3]
CONFLICT @ -1
Mod Initialized: mod_ores 0
Mod Initialized: mod_Railcraft 4.1.3
Mod Initialized: mod_RedPowerArray 2.0pr4d
Mod Initialized: mod_RedPowerCore 2.0pr4e
Mod Initialized: mod_RedPowerLighting 2.0pr4e
Mod Initialized: mod_RedPowerLogic 2.0pr4e
Mod Initialized: mod_RedPowerWiring 2.0pr4e
Mod Initialized: mod_stevescarts 1.2.0
Mod Initialized: mod_treecapitator 1.2.3.a updated by bspkrs
Mod Initialized: WirelessRedstone 1.5
Mod Loaded: mod_ModLoaderMp 1.2.3v3
Mod Loaded: mod_MinecraftForge 1.4.1.61
Loaded NotEnoughItems: 516875678
Mod Loaded: mod_NotEnoughItems 1.1.3

*** Loading BACKPACK mod by MightyPork ***
...visit PlanetMinecraft.com to see my other mods!

Overriding /gui/items.png with /backpack/backpack.png @ 38. 84 left.
Mod Loaded: mod_Backpack 1.2.3_v2-3
Mod Loaded: mod_BuildCraftCore 3.1.4
Mod Loaded: mod_BuildCraftBuilders 3.1.4
Mod Loaded: mod_BuildCraftEnergy 3.1.4
Mod Loaded: mod_BuildCraftFactory 3.1.4
Mod Loaded: mod_BuildCraftTransport 3.1.4
Mod Loaded: mod_BuildCraftSilicon 3.1.4
Mod Loaded: mod_CCGPU 1.0
Overriding /gui/items.png with /claymans/disruptor.png @ 102. 83 left.
Overriding /gui/items.png with /claymans/doll.png @ 118. 82 left.
Overriding /gui/items.png with /claymans/dollHorse.png @ 119. 81 left.
Overriding /gui/items.png with /claymans/dollPegasus.png @ 120. 80 left.
Overriding /gui/items.png with /claymans/dollBrick.png @ 134. 79 left.
Overriding /gui/items.png with /claymans/noms.png @ 144. 78 left.
Overriding /gui/items.png with /claymans/shield.png @ 145. 77 left.
Overriding /gui/items.png with /claymans/shields.png @ 146. 76 left.
Overriding /gui/items.png with /claymans/dollTurtle.png @ 147. 75 left.
Overriding /gui/items.png with /claymans/dollMelon.png @ 148. 74 left.
Overriding /gui/items.png with /claymans/dollPumpkin.png @ 149. 73 left.
Overriding /gui/items.png with /claymans/wing.png @ 150. 72 left.
Overriding /gui/items.png with /claymans/dollShell.png @ 152. 71 left.
Mod Loaded: mod_ClayMan 1.2.3 v.6_03
ComputerCraft: Searching for RedPowerLib...
ComputerCraft: RedPowerLib and methods located.
Mod Loaded: mod_CCTurtle 1.31
Mod Loaded: mod_ComputerCraft 1.31
CONFLICT @ -134
Mod Loaded: Dragon Mounts 0.8pre
Mod Loaded: mod_hay 14.0
[IC2] Config loaded from C:UsersLukeAppDataRoaming.minecraftconfigIC2.cfg
[IC2] Using 32 audio sources.
Mod Loaded: mod_IC2 v1.81
151
154
Mod Loaded: mod_PigbearLaser 1.4
IronChest: MinecraftForge minor version mismatch, expecting 1.3.x, may lead to u
nexpected behavior
RegisterGUI error: inventoryType already registered.
Mod Loaded: mod_IronChest 3.0
Mod Loaded: mod_MorePistons v0.8 for [1.2.3]
Mod Loaded: mod_ores 0
Mod Loaded: mod_Railcraft 4.1.3
Mod Loaded: mod_RedPowerArray 2.0pr4d
Mod Loaded: mod_RedPowerCore 2.0pr4e
Mod Loaded: mod_RedPowerLighting 2.0pr4e
Mod Loaded: mod_RedPowerLogic 2.0pr4e
Mod Loaded: mod_RedPowerWiring 2.0pr4e
Mod Loaded: mod_stevescarts 1.2.0
Mod Loaded: mod_treecapitator 1.2.3.a updated by bspkrs
Overriding /terrain.png with /WirelessSprites/topOn.png @ 189. 23 left.
Overriding /terrain.png with /WirelessSprites/topOff.png @ 190. 22 left.
Overriding /terrain.png with /WirelessSprites/rxOn.png @ 191. 21 left.
Overriding /terrain.png with /WirelessSprites/rxOff.png @ 198. 20 left.
Overriding /terrain.png with /WirelessSprites/txOn.png @ 199. 19 left.
Overriding /terrain.png with /WirelessSprites/txOff.png @ 200. 18 left.
Mod Loaded: WirelessRedstone 1.5
Starting BuildCraft 3.1.4
Copyright (c) SpaceToad, 2011-2012
http://www.mod-buildcraft.com
[IC2] Loading IC2 submodule: bcIntegration31x
[IC2] BuildCraft integration module loaded
[IC2] Loading IC2 submodule: cgIntegration14x
[IC2] CraftGuide integration module loaded
[IC2] Loading IC2 submodule: neiIntegration11x
[IC2] NEI integration module loaded
[IC2] Portal Gun compatibility not loaded: java.lang.ClassNotFoundException: mod
_PortalGun
Done.
WARNING: Found unknown Windows version: Windows 7
Attempting to use default windows plug-in.
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.or
g)
OpenAL initialized.
last path , current path C:UsersLukeAppDataRoaming.minecraftsavesNew Worl
d--/backpacks.dat
New buffer instance!
New buffer instance!
java.lang.NullPointerException
	    at cc.gpu.shared.TileEntityGPU.render(TileEntityGPU.java:179)
	    at cc.gpu.client.TileEntityGPURenderer.a(TileEntityGPURenderer.java:15)
	    at acc.a(SourceFile:129)
	    at acc.a(SourceFile:122)
	    at l.a(RenderGlobal.java:440)
	    at lo.a(EntityRenderer.java:1103)
	    at lo.b(EntityRenderer.java:908)
	    at EntityRendererProxy.b(EntityRendererProxy.java:21)
	    at net.minecraft.client.Minecraft.x(Minecraft.java:892)
	    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
	    at java.lang.Thread.run(Unknown Source)
Stopping!
SoundSystem shutting down...
    Author: Paul Lamb, www.paulscode.com

C:UsersLukeDesktop>pause
Press any key to continue . . .
yoskaz01 #30
Posted 01 April 2012 - 05:38 AM
VV entertaining himself with ccGPU :

Animating linegraph
Spoiler



local MAXSETSIZE=110
local dataSet={}


function addData(value)
   table.insert(dataSet,1,value)
   if #dataSet==(MAXSETSIZE+1) then
	 table.remove(dataSet,#dataSet)
   end
end

local function getVertex(x,y)
return "glVertex2f("..x..","..y..") "
end

local function getLineVertex(x1,y1,x2,y2)
   return getVertex(x1,y1)..getVertex(x2,y2)
end

local function getRenderCode()
local renderCode=[[
gpuBindOutputBuffer(1)
gpuClearBuffer()
glBegin(1)
do
glColor3f(1, 1, 0)
]]


renderCode=renderCode..getLineVertex(5,2,5,110)
renderCode=renderCode..getLineVertex(5,110,120,110)

for n=110,5,-10 do
renderCode=renderCode..getLineVertex(2,n,5,n)
end

for n=5,120,10 do
renderCode=renderCode..getLineVertex(n,110,n,115)
end

for n=1,#dataSet-1 do
renderCode=renderCode..getLineVertex(6+n,110-dataSet[n],7+n,110-dataSet[n+1])
end

renderCode=renderCode..[[
end
glEnd()
]]
return renderCode
end

local frame=0
local currentValue=0

while true do
frame=frame+1
	gpu.setRenderCode(getRenderCode())
if frame%100==0 then
sleep(0.1)
end
if math.random(10)<=5 and currentValue>0 then
currentValue=currentValue-1
elseif currentValue<120 then
   currentValue=currentValue+1
end
addData(currentValue)
end






Spoiler

VV, looks great
maybe make a graphing api? bar graphs, etc…
this can fit with ccSensors perfectly :o/>/>


great mod.
vvenaya #31
Posted 01 April 2012 - 01:15 PM
Shameless advertisement of a server:

lukeplechaty #32
Posted 01 April 2012 - 04:00 PM
where the download link for V1.1 as the catalogue show a V1.1
EvgEniy #33
Posted 01 April 2012 - 08:04 PM
Will there be SMP support?
xuma202 #34
Posted 01 April 2012 - 08:48 PM
Maybe in the future I guess.
Ludburghmdm #35
Posted 02 April 2012 - 01:40 AM
Subject: Invisible GPU Monitors Bug
Running: Minecraft 1.2.4, ComputerCraft 1.32
Description of Bug:GPU Monitors are see through

How To Reproduce:
1.)Make a Computer and Place it somewhere
2.)Make a GPU and Place it on top of the Computer
3.)Make a GPU Monitor and place it on the left side of the Computer
4.)Restart Minecraft.

Images here: http://s000.tinyuplo...338068510011026
(File was too big for an attachment)
xuma202 #36
Posted 02 April 2012 - 09:58 AM
Well this is a known bug when you restart Minecraft. You're monitors front side will be invisible. You have to replace the monitor.
Hope this will be fixed in the next update.

PS: This bug doesn't rely on the exact setup. It will happen to all monitors.
Dirkus7 #37
Posted 02 April 2012 - 01:15 PM
I see a version 1.1 in the changelog, when is it going to be uploaded? I can't wait :)/>/>
Mast3rPlan #38
Posted 03 April 2012 - 01:47 PM
I see a version 1.1 in the changelog, when is it going to be uploaded? I can't wait :)/>/>
I'll be releasing it soon, altough I might wait for 1.2.5, We'll see!
Dirkus7 #39
Posted 03 April 2012 - 10:04 PM
I see a version 1.1 in the changelog, when is it going to be uploaded? I can't wait :)/>/>
I'll be releasing it soon, altough I might wait for 1.2.5, We'll see!
Okay thank you, that's not too long and the mod works just fine except for some little bugs.
I will play around with the current version :D/>/>
grinchfox #40
Posted 03 April 2012 - 10:30 PM
Its kinda boring without Multiplayer, but for multiplayer you need nettworking code to transfer frames somehow as vector data and objects or something like was in EGP (garrymod's wiremod) or clear code as GPU(garrysmod's wiremod) or just plain image data as in Digital Screen (garrysmod's wiremod).
So there is few examples of such ingame screen realisation methods from garrymod, will you make something same for SMP ? I will be really happy if you do :3
Mast3rPlan #41
Posted 04 April 2012 - 02:31 PM
Its kinda boring without Multiplayer, but for multiplayer you need nettworking code to transfer frames somehow as vector data and objects or something like was in EGP (garrymod's wiremod) or clear code as GPU(garrysmod's wiremod) or just plain image data as in Digital Screen (garrysmod's wiremod).
So there is few examples of such ingame screen realisation methods from garrymod, will you make something same for SMP ? I will be really happy if you do :3

Exactly, you got it figured out my friend. I will certainly be implementing this for SMP. The setRenderCode function is used so we could later send compiled LUA code to the client if on SMP. Frame desynchronization will be possible, although not necessary. I will be implementing some kind of clock system and sending variables to the gpu (AKA. sending variables to the client). Later I'll also implement Video streaming to a texture including SMP support for that. I'll probably be using FMJ for that.
xuma202 #42
Posted 04 April 2012 - 03:39 PM
Soon people will start watching p*** in MC :)/>/>
Gurkenmaster #43
Posted 04 April 2012 - 04:32 PM
Soon people will start watching p*** in MC :)/>/>
You can already do that with this mod http://www.minecraft...__7162274#tvmod
xuma202 #44
Posted 04 April 2012 - 11:29 PM
Not interested in doing that :)/>/>
Ludburghmdm #45
Posted 06 April 2012 - 08:11 AM
Soon people will start watching p*** in MC :)/>/>

Please don't say that. There are some kids (like me, I'm 11) browsing the forums and saying adult-themed words like anything having to do with reproducing, is really bad for kids.
vvenaya #46
Posted 06 April 2012 - 09:20 AM
Soon people will start watching p*** in MC :)/>/>

Please don't say that. There are some kids (like me, I'm 11) browsing the forums and saying adult-themed words like anything having to do with reproducing, is really bad for kids.

This is the internet, you should not even allowed using it unrestricted @ 11. (though i am certainly not your parent/grandparent).
If you are able to read this forum, you are most certainly able to get to 'other' sites much worse.

Anyhow, going to try out 1.1 version, the topic is a bit confusing though, and the OP is still saying its 1.0. you might wanne fix that Mast3rplan

EDIT: It appears the download itself is 1.0 aswel, so 1.1 is not available, even though the changelog states otherwise
xuma202 #47
Posted 06 April 2012 - 11:24 AM
I think these are changes that will appear in the next update although it's not released. So still might interesting for some people.
FuzzyPurp #48
Posted 08 April 2012 - 01:43 AM
Soon people will start watching p*** in MC :P/>/>

Please don't say that. There are some kids (like me, I'm 11) browsing the forums and saying adult-themed words like anything having to do with reproducing, is really bad for kids.

This is the internet, you should not even allowed using it unrestricted @ 11. (though i am certainly not your parent/grandparent).
If you are able to read this forum, you are most certainly able to get to 'other' sites much worse.

Anyhow, going to try out 1.1 version, the topic is a bit confusing though, and the OP is still saying its 1.0. you might wanne fix that Mast3rplan

EDIT: It appears the download itself is 1.0 aswel, so 1.1 is not available, even though the changelog states otherwise

Agreed about 11 yr olds on the internet. On the otherhand i use this mod on 1.2.3 no issues, the backport from 1.2.4 i made.
lukeplechaty #49
Posted 14 April 2012 - 11:33 AM
is this dead now
Mads #50
Posted 14 April 2012 - 01:50 PM
is this dead now
Something digital can't die
Cloudy #51
Posted 14 April 2012 - 07:19 PM
This is not dead. I have been doing some work on porting this to SMP, and Mast3rPlan has made some progress on a projector. We are both very busy with other things, but I'll speak to Mast3rPlan about the plans for release when I next see him online.
lukeplechaty #52
Posted 14 April 2012 - 07:25 PM
ok hope to see an update soon :)/>/>
Mendax #53
Posted 16 April 2012 - 01:04 PM
The monitor bug happens to me without this mod. Switching tex packs fixes it.
Dirkus7 #54
Posted 18 April 2012 - 08:25 PM
Can't you just pre-release it for version 1.2.3 or 1.2.4 because i really can't wait for the update D:
Dirkus7 #55
Posted 23 April 2012 - 09:57 PM
I see a version 1.1 in the changelog, when is it going to be uploaded? I can't wait :)/>/>
I'll be releasing it soon, altough I might wait for 1.2.5, We'll see!
1.2.5 is there, just use the 1.2.4 with the most recent forge :)/>/>
cant_delete_account #56
Posted 23 April 2012 - 11:35 PM
1.2.5 is there, just use the 1.2.4 with the most recent forge :)/>/>
Now it's ACTUALLY released. Dan just posted it like… 2 hours ago! :)/>/>
Dirkus7 #57
Posted 24 April 2012 - 05:19 PM
1.2.5 is there, just use the 1.2.4 with the most recent forge :)/>/>
Now it's ACTUALLY released. Dan just posted it like… 2 hours ago! :)/>/>
i got it now, what's the difference? 1.32 works fine with 1.2.5
Xfel #58
Posted 24 April 2012 - 07:27 PM
It didn't work with the most recent MCForge version, which is the requirement for buildcraft&amp;co.
skyeyemachine #59
Posted 25 April 2012 - 01:32 PM
Hello,

I'm interested to try this in 1.2.5 with CC 1.33, but although there is mention of a 1.1 version in the thread here, the download links only give 1.0. Is there another file link that I should be seeing? Thanks for any help.
Dirkus7 #60
Posted 25 April 2012 - 04:07 PM
Found another bug: doesn't work very well with the anaglyph function
FuzzyPurp #61
Posted 30 April 2012 - 09:38 PM
will this be updated for 1.2.5?
Dirkus7 #62
Posted 19 May 2012 - 03:33 PM
We're all waiting for the update
darkhog #63
Posted 31 May 2012 - 01:50 AM
Could you update it to CC 1.33 and add simple API for 2d graphics with routines like PutPixel(x,y,r,g, b), line(x1,y1,x2,y2,r,g, b) rectangle(x1,y1,x2,y2,r,g, b) ellipse(x1,y1,x2,y2,r,g, b)? It would make things easier for people that aren't OpenGL-savvy and just want to make graphics.

Also, would be possible to integrate GPU with Monitor? It'd be easier that way (and taking less space).
xuma202 #64
Posted 03 June 2012 - 12:18 PM
Hi darkhog I've just created an API for the CCGPU mod. You may wanna take a look at it. http://www.computercraft.info/forums2/index.php?/topic/1956-ccgpu-basic-shapes-api-v10/
Dirkus7 #65
Posted 03 June 2012 - 05:14 PM
Also, would be possible to integrate GPU with Monitor? It'd be easier that way (and taking less space).
That would be difficult, as the monitor is part of CC, and not CCGPU. The monitor is text-based and the Graphics monitor color-based. Also, the graphical monitors have changeable ID's. And i like it how i can place multiple monitors in my world without the need of a computer next to it. It is possible if you make a new monitor type, which should be multifunctional, so text and color. Or just use the graphic monitor to write text.
xuma202 #66
Posted 07 June 2012 - 05:12 PM
Maybe he meant a Graphical Monitor with a GPU. That should be possible I guess.
tommyroyall #67
Posted 23 June 2012 - 05:12 PM
Can someone who does peripherals just come and pick this up too the next version, or if that has already been done can someone please post a link too it in the comments? Thanks :P/>/>.
schrolock #68
Posted 27 June 2012 - 03:20 PM
please update
Cloudy #69
Posted 05 July 2012 - 02:00 AM
https://dl.dropbox.com/u/9423887/CCGPU/CCGPU%20v1.09%20%28MC%201.2.5%29.zip

This is CCGPU 1.09 - it includes some of the stuff in 1.1 (the bug fixes) but no SMP support. But hey, it is working on 1.2.5.

I have permission from the original author to release this port, and did so from his source.
Dirkus7 #70
Posted 06 July 2012 - 05:18 PM
Thanks, cloudy!
pianoman112233 #71
Posted 13 July 2012 - 08:08 PM
https://dl.dropbox.c...%201.2.5%29.zip

This is CCGPU 1.09 - it includes some of the stuff in 1.1 (the bug fixes) but no SMP support. But hey, it is working on 1.2.5.

I have permission from the original author to release this port, and did so from his source.


i get a error when using it


Error:


Mods loaded: 6
ModLoader 1.2.5
mod_MinecraftForge 3.1.3.105
mod_TooManyItems 1.2.5 2012-04-13
mod_ComputerCraft 1.33
mod_CCTurtle 1.33
mod_CCGPU 1.0

Minecraft has crashed!
———————-

Minecraft has stopped running because it encountered a problem.




— BEGIN ERROR REPORT 5e80c8d3 ——–
Generated 13/07/12 20:07

Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_33, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Intel 945GM version 1.4.0 - Build 8.14.10.1930, Intel

java.lang.IllegalStateException: Function is not supported
at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:64)
at org.lwjgl.opengl.EXTFramebufferObject.glBindFramebufferEXT(EXTFramebufferObject.java:193)
at cc.gpu.client.GPUBuffer.restore(GPUBuffer.java:147)
at cc.gpu.client.GPULib.restoreBackBuffer(GPULib.java:198)
at cc.gpu.shared.TileEntityGPU.render(TileEntityGPU.java:177)
at cc.gpu.client.TileEntityGPURenderer.a(TileEntityGPURenderer.java:15)
at ach.a(SourceFile:129)
at ach.a(SourceFile:122)
at l.a(RenderGlobal.java:467)
at lr.a(EntityRenderer.java:1292)
at lr.b(EntityRenderer.java:1030)
at EntityRendererProxy.b(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.x(Minecraft.java:869)
at net.minecraft.client.Minecraft.run(Minecraft.java:747)
at java.lang.Thread.run(Unknown Source)
— END ERROR REPORT 678eeef ———-
Cloudy #72
Posted 13 July 2012 - 10:44 PM
Read the original post - ensure your graphics drivers are updated. I don't know crap about GL myself.
MysticT #73
Posted 13 July 2012 - 10:48 PM
It looks like you don't have FBO support. Try installing the latest drives, if that doesn't work, you can't use it.
pianoman112233 #74
Posted 14 July 2012 - 10:44 AM
It looks like you don't have FBO support. Try installing the latest drives, if that doesn't work, you can't use it.
ok :/ i have small chance of it working then i have a s*** notebook i need a new comp :/

he should make it use drivers all of them have
Cloudy #75
Posted 14 July 2012 - 10:55 AM
Due to the way this works, I don't believe it would be possible to cater for all - just update your drivers, and see if it works.
pianoman112233 #76
Posted 29 July 2012 - 01:48 PM
Due to the way this works, I don't believe it would be possible to cater for all - just update your drivers, and see if it works.
how do i get the source code? if i could get the code i could make it compatible with bad computers by making it not use some opengl function and replaceing them with others and stuff
Cloudy #77
Posted 29 July 2012 - 02:26 PM
You can't get the source code - it isn't open source. And the function that doesn't work is pretty integral to how it works.
pianoman112233 #78
Posted 29 July 2012 - 08:49 PM
You can't get the source code - it isn't open source. And the function that doesn't work is pretty integral to how it works.
well if powercraft can make something like this that works then i'm sure its possible
Cloudy #79
Posted 29 July 2012 - 11:07 PM
You can't get the source code - it isn't open source. And the function that doesn't work is pretty integral to how it works.
well if powercraft can make something like this that works then i'm sure its possible

Powercraft doesn't let users run arbitrary GL code on in game monitors.
pianoman112233 #80
Posted 30 July 2012 - 12:11 AM
You can't get the source code - it isn't open source. And the function that doesn't work is pretty integral to how it works.
well if powercraft can make something like this that works then i'm sure its possible

Powercraft doesn't let users run arbitrary GL code on in game monitors.
…they will be a way…theres always a way
MysticT #81
Posted 30 July 2012 - 02:16 AM
You can't get the source code - it isn't open source. And the function that doesn't work is pretty integral to how it works.
well if powercraft can make something like this that works then i'm sure its possible

Powercraft doesn't let users run arbitrary GL code on in game monitors.
…they will be a way…theres always a way
Maybe, but you would need to change almost all the mod (at least all the render code). The mod is based on FBOs, wich are used to redner to texture, and then it uses the texture to display it on the world. Also, I'm not sure if there's other way of rendering to textures.
tommyroyall #82
Posted 11 August 2012 - 09:57 PM
Is there a 1.41 version of this?
xuma202 #83
Posted 12 August 2012 - 10:06 AM
Because there was no change the API between CC 1.3 and CC 1.4 the latest version of CCGPU should be compatible with CC 1.41. However it will not work with MC 1.3 but since there is no CC for this version yet this should not be a porblem.
FunshineX #84
Posted 15 August 2012 - 09:50 AM
Using MC 1.2.5, CC 1.4.1, and CCGPU 1.0, with Forge 3.3.8.152, minecraft crashes referencing BaseModMp. Has CCGPU not been updated to use FML? Has anyone gotten this to work on CC 1.4 with a newer version of forge and if so what version?
FuzzyPurp #85
Posted 15 August 2012 - 11:03 AM
Using MC 1.2.5, CC 1.4.1, and CCGPU 1.0, with Forge 3.3.8.152, minecraft crashes referencing BaseModMp. Has CCGPU not been updated to use FML? Has anyone gotten this to work on CC 1.4 with a newer version of forge and if so what version?

Just means this mod still needs mlmp, FML replaces ML and AudiMod, not ModloaderMP
Cloudy #86
Posted 15 August 2012 - 02:54 PM
https://dl.dropbox.com/u/9423887/CCGPU/CCGPU%20v1.09%20%28MC%201.2.5%29.zip

This is CCGPU 1.09 - it includes some of the stuff in 1.1 (the bug fixes) but no SMP support. But hey, it is working on 1.2.5.

I have permission from the original author to release this port, and did so from his source.

Use this one. No ModloaderMP required - you're using an old version.
Ferdari #87
Posted 23 September 2012 - 09:35 PM
this peripheral is a must-have with computercraft, can you update to 1.3.2? :P/>/>
FunshineX #88
Posted 09 February 2013 - 10:36 AM
https://dl.dropbox.c...%201.2.5%29.zip

This is CCGPU 1.09 - it includes some of the stuff in 1.1 (the bug fixes) but no SMP support. But hey, it is working on 1.2.5.

I have permission from the original author to release this port, and did so from his source.

Use this one. No ModloaderMP required - you're using an old version.

Guessing development of ccgpu is suspended? Was hoping to upgrade my CC arcade to 1.4.6/7 before starting work on my next project
xuma202 #89
Posted 09 February 2013 - 10:50 AM
This project has been stopped though Cloudy did a port to MC 1.2.5.
I don't know if he or someone else will do another one but because of the heavy changes in MC since then it would probably make more sense recoding the whole project.
Tiin57 #90
Posted 09 February 2013 - 12:10 PM
https://dl.dropbox.c...%201.2.5%29.zip

This is CCGPU 1.09 - it includes some of the stuff in 1.1 (the bug fixes) but no SMP support. But hey, it is working on 1.2.5.

I have permission from the original author to release this port, and did so from his source.

Use this one. No ModloaderMP required - you're using an old version.

Guessing development of ccgpu is suspended? Was hoping to upgrade my CC arcade to 1.4.6/7 before starting work on my next project
I would suggest CCLights. I believe that this peripheral is well and truly dead.
computercam #91
Posted 21 July 2013 - 07:08 AM
please can I have it for 1.6.2
Lyqyd #92
Posted 21 July 2013 - 01:25 PM
It would appear not. This project seems to be dead.