kat15pl
Senior Newbie 
|
 |
«
Posted
2012-03-27 22:41:12 » |
|
Hi, I'm just starting play with 3D kind something:) I choose LWJGL. 1. How can I do function like fade to white and fade to black? 2. Is it complicate to draw 3D model? 3. Can I draw something in back screen? (like drawing, but not display)
|
|
|
|
sproingie
|
 |
«
Reply #1 - Posted
2012-03-27 23:17:04 » |
|
This is not SMS. You'll find people are more eager to answer your questions when you speak in complete sentences.
|
|
|
|
roland
|
 |
«
Reply #2 - Posted
2012-03-28 02:38:11 » |
|
Hi, I'm just starting play with 3D kind sth:) I choose LWJGL. 1. How can I do fade 2 white and fade to black? 2. is it complicate to draw 3D model? 3. Can I draw sth in backbuffor?
1. Set the opengl clear colour to black start with a variable alpha= 1; then every frame decrease alpha until it equals 0. (decrease it by 0.001 each frame) set the colour using GL11.glColor4f(1,1,1,alpha); //r,g,b,a Draw a rectangle over the whole screen, using the above colour. 2. WAY too complicated. Don't even try it at this stage. First try drawing textured squares and cubes, if you understand that, then maybe look at models. 3. I agree with sproingie. Look at tutorials here: http://lwjgl.org/wiki/index.php?title=Main_Page for how to learn basic lwjgl.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #3 - Posted
2012-03-28 07:08:09 » |
|
Ok, Thanks for help. 2. I can draw 2D boxes, circles, etc., but in some part of my game I must draw 3D models (for example inventory object), so there was my question
|
|
|
|
ra4king
|
 |
«
Reply #4 - Posted
2012-03-28 07:40:19 » |
|
3. LWJGL already double buffers for you so you needn't worry about that 
|
|
|
|
theagentd
|
 |
«
Reply #5 - Posted
2012-03-28 08:41:04 » |
|
Ok, Thanks for help. 2. I can draw 2D boxes, circles, etc., but in some part of my game I must draw 3D models (for example inventory object), so there was my question
I don't see why you would want 3D objects as inventory models if the rest of your game is 2D. Heck, even having 3D inventory objects is very uncommon.
|
Myomyomyo.
|
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #6 - Posted
2012-03-28 08:52:20 » |
|
Well. I'm making a JAVA remake of the game which was make in 90's. It has map in 2d, but models (even inv. in 3D)
|
|
|
|
Mike
|
 |
«
Reply #7 - Posted
2012-03-28 11:07:22 » |
|
If you just want to make boxes/geometrical shapes in 3d then use your math skills  If there are more complex models pick up a program like blender. Mike
|
|
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #8 - Posted
2012-03-28 11:10:38 » |
|
I'm using orginal files for this game, so I need only render it:)
|
|
|
|
Mike
|
 |
«
Reply #9 - Posted
2012-03-28 11:13:31 » |
|
If the original files contain vertices then just draw it as triangles  Mike
|
|
|
|
Games published by our own members! Check 'em out!
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #10 - Posted
2012-03-28 11:15:39 » |
|
I will try, thanks:)
|
|
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #11 - Posted
2012-03-28 11:16:15 » |
|
Ok, Thanks for help. 2. I can draw 2D boxes, circles, etc., but in some part of my game I must draw 3D models (for example inventory object), so there was my question
I don't see why you would want 3D objects as inventory models if the rest of your game is 2D. Heck, even having 3D inventory objects is very uncommon. What do u mean by that?
|
|
|
|
ReBirth
|
 |
«
Reply #12 - Posted
2012-03-28 11:49:31 » |
|
I think theagentd wanted to say that it's a no match, gameplay in 2D but suddenly everything has one more degree in inventory menu. A game will try to be totally 2D or 3D.
|
|
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #13 - Posted
2012-03-28 11:57:10 » |
|
3. LWJGL already double buffers for you so you needn't worry about that  Sorry, this I want to quote:) What do you mean by that?
|
|
|
|
Riven
|
 |
«
Reply #14 - Posted
2012-03-28 12:30:16 » |
|
LWJGL doesn't really double buffer anything for you.
OpenGL has (almost always) two buffers: the buffer that is onscreen and the buffer that is not (backbuffer).
You always render to a buffer that is invisible, so there is no need to perform (manual) double buffering.
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #15 - Posted
2012-03-28 12:36:11 » |
|
Ok.... is SDL has it? Could u tell me step by step how to configure <eclipse> to use it?
|
|
|
|
Riven
|
 |
«
Reply #16 - Posted
2012-03-28 12:38:38 » |
|
Ok.... is SDL has it?
Yes. No. Maybe? Could u tell me step by step how to configure <eclipse> to use it?
Google has step-by-step guides for everything, including self-teaching.
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
kat15pl
Senior Newbie 
|
 |
«
Reply #17 - Posted
2012-03-28 12:39:41 » |
|
So.. Riven.. what you are using? or you don't draw 3D?
|
|
|
|
Riven
|
 |
«
Reply #18 - Posted
2012-03-28 12:45:48 » |
|
I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
ra4king
|
 |
«
Reply #19 - Posted
2012-03-28 21:56:31 » |
|
I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations.  I can hear the whooshing sounds over people's heads already! 
|
|
|
|
Sickan
|
 |
«
Reply #20 - Posted
2012-05-21 18:58:50 » |
|
I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations.  I will take it as my goal in life to translate and decipher that into wording comprehendable for mere mortals. Then I'm going to make a religion about it.
|
|
|
|
Ciaran54
|
 |
«
Reply #21 - Posted
2012-05-21 19:12:59 » |
|
I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations.  I will take it as my goal in life to translate and decipher that into wording comprehendable for mere mortals. Then I'm going to make a religion about it. Don't, it sounds much less intelligent that way: I use a computer to make 3D computer drawings stored in a language of only 1s and 0s become a grid of 2d pixels which represents this 3d drawing in a way that humans can visualise, transformed as depicted by a grid of numbers which describes the transformation.
|
|
|
|
gimbal
|
 |
«
Reply #22 - Posted
2012-05-22 13:04:29 » |
|
I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations.  "I do things with stuff"
|
|
|
|
Riven
|
 |
«
Reply #23 - Posted
2012-05-22 13:33:21 » |
|
"I do things with stuff"
That pretty much sums up life. 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
ra4king
|
 |
«
Reply #24 - Posted
2012-05-22 14:03:15 » |
|
I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations.  "I do things with stuff" Well worded summary! 
|
|
|
|
theagentd
|
 |
«
Reply #25 - Posted
2012-05-22 14:09:14 » |
|
"I do things with stuff"
That pretty much sums up life.  Nonono, that would be "I do things.", no need for "with stuff". xD
|
Myomyomyo.
|
|
|
|