Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (768)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (854)
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  
  Why the hell is it not displaying?  (Read 1553 times)
0 Members and 1 Guest are viewing this topic.
Offline Malek

Junior Devvie




Java games rock!


« Posted 2005-07-15 14:29:54 »

Hi everyone,
I don't know whether i am blind or what but i have twice the same code to initialise a rendering in one class it works and in the other my Canvas desperately keeps being black.
I have spend nearly two days reading my code letter by letter but i really can not figure it out !!

Here is the one that works.

http://www.ccp4.ac.uk/fr45/jogl/HegeScene.java

and here the one that do not

http://www.ccp4.ac.uk/fr45/jogl/HegeArch.java

If anyone see something obvious please give me a shout, this is driving me nuts. I have the feeling it is something basic but I seem to be blind to it
Offline Malek

Junior Devvie




Java games rock!


« Reply #1 - Posted 2005-07-19 10:22:30 »

Got it ! Grin

I found the reason, but i am not really understanding why it does so. The fact is i place my  "eye" at coordinate (x,y+20,z) and my look point at (x,y,z). Meaning that i look vertically downwards to my scene.

It seems that gluLookAt is suddenly very unhappy with it since my screen directly get black?

Even if i am thinking about how does the view Volume is built i do not know why it is behaving like that. Is it normal?
Offline pepijnve

Junior Devvie




Java games rock!


« Reply #2 - Posted 2005-07-19 12:30:33 »

What are you using as up vector? If you're simply using (0, 1, 0), that's the reason why things stop working. gluLookAt calculates the cross product of (center - eye) and up. If these two are parallel, the cross product is undefined resulting in a bogus modelview transformation matrix..
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Malek

Junior Devvie




Java games rock!


« Reply #3 - Posted 2005-07-19 14:29:18 »

If anyone see something obvious please give me a shout, this is driving me nuts. I have the feeling it is something basic but I seem to be blind to it

Well sounds like you pointed out how blind I can be sometimes  Tongue

Thanks to point it out  Wink
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (1338 views)
2018-06-10 19:43:48

EgonOlsen (1229 views)
2018-06-10 19:43:44

EgonOlsen (939 views)
2018-06-10 19:43:20

DesertCoockie (1380 views)
2018-05-13 18:23:11

nelsongames (1112 views)
2018-04-24 18:15:36

nelsongames (1374 views)
2018-04-24 18:14:32

ivj94 (2119 views)
2018-03-24 14:47:39

ivj94 (1268 views)
2018-03-24 14:46:31

ivj94 (2285 views)
2018-03-24 14:43:53

Solater (807 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!