Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL - How can I... (begginers questions)  (Read 7256 times)
0 Members and 1 Guest are viewing this topic.
Offline kat15pl

Senior Newbie





« Posted 2012-03-28 00: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)

Offline sproingie

JGO Kernel


Medals: 202



« Reply #1 - Posted 2012-03-28 01:17:04 »

This is not SMS.  You'll find people are more eager to answer your questions when you speak in complete sentences.

Offline roland
« Reply #2 - Posted 2012-03-28 04: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!
Legends of Yore - The Casual Retro Roguelike
Offline kat15pl

Senior Newbie





« Reply #3 - Posted 2012-03-28 09: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
Offline ra4king

JGO Kernel


Medals: 337
Projects: 2
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2012-03-28 09:40:19 »

3. LWJGL already double buffers for you so you needn't worry about that Smiley

Online theagentd
« Reply #5 - Posted 2012-03-28 10: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.
Offline kat15pl

Senior Newbie





« Reply #6 - Posted 2012-03-28 10: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)
Online Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #7 - Posted 2012-03-28 13:07:22 »

If you just want to make boxes/geometrical shapes in 3d then use your math skills Wink If there are more complex models pick up a program like blender.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline kat15pl

Senior Newbie





« Reply #8 - Posted 2012-03-28 13:10:38 »

I'm using orginal files for this game, so I need only render it:)
Online Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #9 - Posted 2012-03-28 13:13:31 »

If the original files contain vertices then just draw it as triangles Wink

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kat15pl

Senior Newbie





« Reply #10 - Posted 2012-03-28 13:15:39 »

I will try, thanks:)
Offline kat15pl

Senior Newbie





« Reply #11 - Posted 2012-03-28 13: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?
Offline ReBirth
« Reply #12 - Posted 2012-03-28 13: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.

Offline kat15pl

Senior Newbie





« Reply #13 - Posted 2012-03-28 13:57:10 »

3. LWJGL already double buffers for you so you needn't worry about that Smiley

Sorry, this I want to quote:)
What do you mean by that?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #14 - Posted 2012-03-28 14: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
Offline kat15pl

Senior Newbie





« Reply #15 - Posted 2012-03-28 14:36:11 »

Ok.... is SDL has it? Could u tell me step by step how to configure <eclipse> to use it?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #16 - Posted 2012-03-28 14: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
Offline kat15pl

Senior Newbie





« Reply #17 - Posted 2012-03-28 14:39:41 »

So.. Riven.. what you are using? or you don't draw 3D?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #18 - Posted 2012-03-28 14:45:48 »

I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. persecutioncomplex

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 337
Projects: 2
Exp: 5 years


I'm the King!


« Reply #19 - Posted 2012-03-28 23:56:31 »

I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. persecutioncomplex
I can hear the whooshing sounds over people's heads already! Shocked

Offline Sickan

Senior Member


Medals: 8



« Reply #20 - Posted 2012-05-21 20:58:50 »

I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. persecutioncomplex
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.
Offline Ciaran54

Junior Member


Medals: 4



« Reply #21 - Posted 2012-05-21 21:12:59 »

I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. persecutioncomplex
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.
Offline gimbal

JGO Knight


Medals: 25



« Reply #22 - Posted 2012-05-22 15:04:29 »

I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. persecutioncomplex

"I do things with stuff"
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #23 - Posted 2012-05-22 15:33:21 »

"I do things with stuff"
That pretty much sums up life. Emo

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 337
Projects: 2
Exp: 5 years


I'm the King!


« Reply #24 - Posted 2012-05-22 16:03:15 »

I use LWJGL to rasterize 2D projections of representations of virtual 3D objects, based on binary stored geometry and precise matrix transformations. persecutioncomplex

"I do things with stuff"
Well worded summary! Grin

Online theagentd
« Reply #25 - Posted 2012-05-22 16:09:14 »

Nonono, that would be "I do things.", no need for "with stuff". xD

Myomyomyo.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!