Hi guys~My system is nearly complete...:lol:
but there still few problem that i can't solve it....
1)I'm using a 3dsloader from morrowland...but according the coding...it will read the color that it last rendered from the model...therefore...when im using glPrint(from nehe tutorial)...although i set the glColor before i call glPrint...I still cant get the color that I want and the color of the text will depends on which color was render last from the model.....but i really need to hard code the color of the text....
2)Multiple viewport....I posted same question before but all the time i tried to solve it but till now this problem can't be solved yet....I did as in the nehe tutorial but i still failed to get the multiple viewport in my system.....
3)The fullscreen....in my system....i start my window with 500*500(size), and in my system....i already fix when user click on certain xy area..it will move to the next scene...just like a button(im doin my GUI with this:blush: ),but the problem is...once i run my program....then if i press the maximize button on the upper right part of the window...the xy area will remain the same area without follow the fullscreen
eg: if user click the button which within x=700,750 and y=850,900,it will change the scene....after maximize...the button will change to within x=1000,1500 and y=4000,4500,but if the user click within this range will nothin happen....but if use still click on the 700,750 and 850,900 area....it will change to the next scene...
i know one way to solve this problem is to get the button coordinate again in fullscreen and do more condition on it(if....else), but this will make my program longer and not efficient....i need suggestion form u guys.....please help....:yes:
Thanks!:worthy:
3 more questions..please help
Started by kennyurge, May 02 2006 06:08 AM
2 replies to this topic
#1
Posted 02 May 2006 - 06:08 AM
#2
Posted 02 May 2006 - 07:43 AM
1) Are you using lighting in your program? If you arn't, or don't know, it's likely that the 3dsloader enables OpenGL lighting to render the model, in which case it would screw up the glPrint color. This is just a guess (I'm not familiar with nehe code or the morrowland 3dsloader), but if my assumption is correct, try adding glDisable(GL_LIGHTING); right before printing the text. Then again, maybe I didn't understand your question properly.
2) What exactly do you want to do, and what problems are you experiencing? Is the viewport sizing correct? What about the perspective? Does the verbatim nehe example work for you?
3) Why not use a fixed resolution between windowed (unresizeable) and fullscreen modes? For example, you could set it so that in both windowed and fullscreen mode 800*600 resolution is used. You then probably wouldn't have to change any of your GUI code.
Otherwise, what you'll have to do is rescale the "input" area based off of the fullscreen/window resolution ratio.
2) What exactly do you want to do, and what problems are you experiencing? Is the viewport sizing correct? What about the perspective? Does the verbatim nehe example work for you?
3) Why not use a fixed resolution between windowed (unresizeable) and fullscreen modes? For example, you could set it so that in both windowed and fullscreen mode 800*600 resolution is used. You then probably wouldn't have to change any of your GUI code.
Otherwise, what you'll have to do is rescale the "input" area based off of the fullscreen/window resolution ratio.
#3
Posted 03 May 2006 - 05:55 AM
NeZbiE said:
1) Are you using lighting in your program? If you arn't, or don't know, it's likely that the 3dsloader enables OpenGL lighting to render the model, in which case it would screw up the glPrint color. This is just a guess (I'm not familiar with nehe code or the morrowland 3dsloader), but if my assumption is correct, try adding glDisable(GL_LIGHTING); right before printing the text. Then again, maybe I didn't understand your question properly.
2) What exactly do you want to do, and what problems are you experiencing? Is the viewport sizing correct? What about the perspective? Does the verbatim nehe example work for you?
3) Why not use a fixed resolution between windowed (unresizeable) and fullscreen modes? For example, you could set it so that in both windowed and fullscreen mode 800*600 resolution is used. You then probably wouldn't have to change any of your GUI code.
Otherwise, what you'll have to do is rescale the "input" area based off of the fullscreen/window resolution ratio.
2) What exactly do you want to do, and what problems are you experiencing? Is the viewport sizing correct? What about the perspective? Does the verbatim nehe example work for you?
3) Why not use a fixed resolution between windowed (unresizeable) and fullscreen modes? For example, you could set it so that in both windowed and fullscreen mode 800*600 resolution is used. You then probably wouldn't have to change any of your GUI code.
Otherwise, what you'll have to do is rescale the "input" area based off of the fullscreen/window resolution ratio.
hihi~here's the link that for the multipleviewport question...
http://www.devmaster...read.php?t=5586
ya....im using lighting in my program....hmm.....as what u said....ya....because my system is sth like walkthrough...so when using the mouse to move the viewing...the color of the text will always change!i think maybe u r rite....maybe becoz of the lighting.....i will try change on that!thanks!::worthy::
hmm.....for the fullscreen problem....looks like that's the onli way to solve that.....thanks again....!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












