done by _H2o_
logo done by _H2o_ :: pouët.net is brought to you by mandarine




jellocube/ribbon how it works?
category: code
go to page of 1  
i've read a lot of forums, still doesn't understand: how to build cube?
added on the 2012-05-07 13:21:31 by Android Barker  
Android Barker
Use different frames from an animation of a rotating cube for each horizontal line.
added on the 2012-05-07 13:25:54 by Preacher  
Preacher
use a matrix on tesselated cube.
added on the 2012-05-07 13:31:19 by Bartoshe  
Bartoshe
diffferent frames animation a'int suitable on BlitzBasic 3D
added on the 2012-05-07 13:32:28 by Android Barker  
Android Barker
it is, you just do everything in software
added on the 2012-05-07 14:24:35 by cce  
cce
maybe guyz are right:
http://engene.se/cube2.html

just my thinko, a sample differs from da algo....
added on the 2012-05-07 14:26:57 by Android Barker  
Android Barker
Maybe it's time to switch to a better programming language if you get hit by silly limitations.
added on the 2012-05-07 15:04:08 by Preacher  
Preacher
Quote:
Maybe it's time to switch to a better programming language if you get hit by silly limitations.


huh, is it suppose to sounds wise or funny?

http://www.lomont.org/Software/

nice puzzle
added on the 2012-05-07 15:35:22 by Android Barker  
Android Barker
Either use vertex shaders or get some balls and code C.
Anyway different models for each frame works for navis.
added on the 2012-05-07 16:04:17 by xernobyl  
xernobyl
What Preacher said. Stop being stuck at BASIC-like languages and get to the real thing... delphi, c(++), or asm. You obviously suffer from the limitations of your development environment.

To answer the real question:
- Use different frames from an animation of a rotating cube for each horizontal line (like preacher said)
- Use a matrix on tesselated cube (like bartoshe said)
- Raymarch an iso-surface with domain distortion. We did this for http://www.pouet.net/prod.php?which=53569
added on the 2012-05-07 16:09:44 by xTr1m  
xTr1m
fuck the c++, it is not a holywar.
i just try to understand how effect works.. and i do not know how to copy part of cube's frame using OpenGL(
it's not limitation of Basic/Pascal/Asm, this is just my empty head. that's it.
added on the 2012-05-07 16:19:13 by Android Barker  
Android Barker
You could theoretically do that with glCopyTexSubImage2D (render the animation into multiple textures and draw parts of those), or by rendering the cube multiple times with different amount of rotation and using glScissor or the stencil buffer to limit the area where the cube is drawn.

However, for OpenGL, a tesselated cube (lots of polygons on each side) with a vertex shader that deforms it somehow is the best choice.
added on the 2012-05-07 16:27:02 by Preacher  
Preacher
What Preacher is describing can be done entirely in software as a 2d effect no matter the graphics API or programming language, using simple trigonometric functions. Very similar to how you'd do a twister.
added on the 2012-05-07 16:28:24 by tomaes  
tomaes
trigonometric functions are clear- torotate vertices. i've found app, guy used Open GL o_O.
and if you take a look at WACO 4k intro, u'll find the way. maybe.
added on the 2012-05-07 18:21:14 by Android Barker  
Android Barker
Actually, it's probably easier to do this type of thing in Blitz3D/BMax than in many other languages. Also, thanks for informing us know Delphi still exists.
added on the 2012-05-07 18:57:52 by havoc  
havoc
Quote:
i've found app, guy used Open GL o_O.

funny.
added on the 2012-05-07 19:03:55 by hfr  
hfr
@Rowley Birkin: i've found example on the Blitz, now it's clear.

added on the 2012-05-07 19:12:27 by Android Barker  
Android Barker
duhhh.
amiganuts has madskillz. on da pc rubber one looks smooth(
added on the 2012-05-09 13:59:59 by Android Barker  
Android Barker
go to page of 1  

post a new reply
You need to be logged in to post a new reply :: register here





pouët.net 0.9-bda6cf8 © 2000-2013 mandarine - hosted on scene.org
send comments and bug reports to webmaster@pouet.net - contribute on GitHub
page created in 0.018231 seconds.