Jump to content




[1.32] CCGPU - A GPU addon for ComputerCraft

peripheral media utility

91 replies to this topic

#21 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 31 March 2012 - 06:04 PM

View Postmad, on 31 March 2012 - 05:13 PM, said:

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

#22 vvenaya

  • Members
  • 27 posts

Posted 31 March 2012 - 06:33 PM

Seems like i run into another bug, while rebooting my computer (the CC computer with CTRL-R)

http://pastebin.com/SgtkeHGB

#23 vvenaya

  • Members
  • 27 posts

Posted 31 March 2012 - 06: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






Posted Image

#24 lukeplechaty

  • Members
  • 19 posts

Posted 31 March 2012 - 07:15 PM


Mast3rPlan can you back port this to 1.2.3 please it wood be much appreciated think you


#25 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 31 March 2012 - 08:36 PM

I released a backport for MC 1.2.3 :o/>

#26 vvenaya

  • Members
  • 27 posts

Posted 31 March 2012 - 09:01 PM

Variable text on ccGPU display as a demo that anything is possible


SCREENSHOT:

Posted Image

CODE:
Spoiler


#27 lukeplechaty

  • Members
  • 19 posts

Posted 31 March 2012 - 09: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
Spoiler
pic
Spoiler
Spoiler


#28 lukeplechaty

  • Members
  • 19 posts

Posted 31 March 2012 - 09: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

#29 lukeplechaty

  • Members
  • 19 posts

Posted 31 March 2012 - 09:52 PM

bug 2:
whan i brack a moniter minecraft crash
Spoiler


#30 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 01 April 2012 - 04:38 AM

View Postvvenaya, on 31 March 2012 - 06:38 PM, said:

VV entertaining himself with ccGPU :

Animating linegraph
Spoiler


Spoiler

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


great mod.

#31 vvenaya

  • Members
  • 27 posts

Posted 01 April 2012 - 12:15 PM

Shameless advertisement of a server:

Posted Image

#32 lukeplechaty

  • Members
  • 19 posts

Posted 01 April 2012 - 03:00 PM

where the download link for V1.1 as the catalogue show a V1.1

#33 EvgEniy

  • New Members
  • 13 posts

Posted 01 April 2012 - 07:04 PM

Will there be SMP support?

#34 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 01 April 2012 - 07:48 PM

Maybe in the future I guess.

#35 Ludburghmdm

  • New Members
  • 67 posts

Posted 02 April 2012 - 12: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)

#36 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 02 April 2012 - 08: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.

#37 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 02 April 2012 - 12:15 PM

I see a version 1.1 in the changelog, when is it going to be uploaded? I can't wait :)/>

#38 Mast3rPlan

  • Members
  • 14 posts

Posted 03 April 2012 - 12:47 PM

View PostDirkus7, on 02 April 2012 - 12:15 PM, said:

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!

#39 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 03 April 2012 - 09:04 PM

View PostMast3rPlan, on 03 April 2012 - 12:47 PM, said:

View PostDirkus7, on 02 April 2012 - 12:15 PM, said:

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/>

#40 grinchfox

  • New Members
  • 16 posts

Posted 03 April 2012 - 09: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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users