Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


GL ignores first Vertex ??? (ASM)

This topic is 5991 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, again I got the problem, that OpenGL doesn''t draw (use) the first vertex: This is MASM code invoke glBegin,GL_LINE_LOOP ;put anything else here _glVertex3f 1.0f,0.0f,0.0f _glVertex3f 2.0f,0.0f,0.0f _glVertex3f 2.0f,1.0f,0.0f _glVertex3f 1.0f,0.0f,0.0f invoke glEnd Nothing wrong I think. Well, @ my pc GL does draw the lines from Vert1->2 2->3 3->4 but not 4->1 It''s a lineloop. Let''s try a quad instead. The 1st Vertex is at the right place every 2nd frame. @ the other frames it''s far, far away left upper out of the screen. I''ve no idea what the problem is. Here''s a link to a Zipfile with Source,Exe,myHeaders and a screenshot. Hope You can help me guys. It''s very important.

Share this post

Link to post
Share on other sites
any idea what the prob is @ my machine ?
Detonator 29.4.
Celeron 466
TNT 2 m64 32mb
Win 98 SE

or with the code ?

I found out that it has todo something with glRotatef in a other code.
Any ideas or suggestions ?

Share this post

Link to post
Share on other sites
Ok guys, I''ve fixed it. But I don''t know if this is the real bug in my code or my CPU

It''s the Floating Point Instructions.

I''ve rewritten them and now it works. Bit tricky now , since I never used the before
Well I''ve never learned Win32 asm

I''ve written a little Effect with it.
Please tell me if it''s running ok on your machine.
(It may be too fast because of no timing
Which one do you like more
cube or cubix both 4k = 6kb zip

Here''s the intro *******

Share this post

Link to post
Share on other sites
are you sick or ill? you look so green..
i prefer the cubix. both are working like they should ( i think, i don''t have a reference image or movie to see it, but they look okay )

"take a look around" - limp bizkit

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!