Welcome aboard Visitor...

Daily Screenshot

Server Costs Target


84% of target met.

Latest Topics

- so i talked with Massi »
- See Commands »
- Now the fun begins »
- Qand answers have returned »
- Call to Arms »
- All Species 8572 Report in »
- hi there »
- Anyone still playing from a decade ago or longer? »
- Game still active. NICE! »
- help me »

Development Blog

- Roadmap »
- Hello strangers, it’s been a while... »
- State of DarkSpace Development »
- Potential planetary interdictor changes! »
- The Silent Cartographer »

Combat Kills

Combat kills in last 24 hours:
No kills today... yet.

Upcoming Events

- Weekly DarkSpace
11/23/24 +22.1 Hours

Search

Anniversaries

No anniversaries today.

Social Media

Why not join us on Discord for a chat, or follow us on Twitter or Facebook for more information and fan updates?

Network

DarkSpace
DarkSpace - Beta
Palestar

[FAQ
Forum Index » » Soap Box » » Programming Question
 Author Programming Question
Kanman
Grand Admiral
Pitch Black


Joined: August 26, 2005
Posts: 1017
From: Virginia, United States
Posted: 2007-08-21 13:39   
Hi guys. Having some trouble with a programming project I am toying with. I am trying to make a pet fish, fully 3D and all that good stuff.

The trouble I am having is that the when I have the polygons drawn to create the surface of the fish, the ones in the back are showing over the ones in the front. I dont know why this would be at all. I am a bit over my head in this and need to know why this is caused.

More than needing to know why this is occurring, I would like to know the common methods of dealing with this. Try to keep it in as close to lay terms as possible, as between the 2-3 games you guys have ever seen my show you is pretty much the extent of my programming knowledge/skills.

Details: I am using OpenGL and specifically, I am drawing the fish in with GL_TRIANGLE.

Thanks guys.

To better illustrate the problem, I have included a link to my current version of my fish (still very simple and far from finished) so you can see the colors of the other sides making it difficult. Left Mouse to Rotate the fish, Right Mouse to Reverse Rotate. A S D W to move the fish around if you so please.

Fish

[ This Message was edited by: Kanman *FC* on 2007-08-21 14:25 ]
_________________


Smartin
Grand Admiral

Joined: August 04, 2005
Posts: 1107
From: Michigan
Posted: 2007-08-21 14:01   
I really dislike the site you use to upload your games, although I don't have any bett suggestoins. I just thought I would let you know.

Good to see you tearing it up in programing, or trying to at least.
_________________


DarkSpace Community Website

  Email Smartin
Kanman
Grand Admiral
Pitch Black


Joined: August 26, 2005
Posts: 1017
From: Virginia, United States
Posted: 2007-08-21 14:02   
I have it on Jacks FTP site (following the instructions he left on my Mirv Defense game), but now I cannot figure out how to create a link from the forum to that file in his site.

Edit: got it working now.

[ This Message was edited by: Kanman *FC* on 2007-08-21 15:00 ]
_________________


Fattierob
Vice Admiral

Joined: April 25, 2003
Posts: 4059
Posted: 2007-08-21 17:57   
Are you taking into account the Z position of the triangles you're drawing?

edit: for some reason, it lags up the rest of my computer

also, their should be a way to rotate it on all of it's axii.

[ This Message was edited by: Fattierob (x2 Weeks™) on 2007-08-21 18:13 ]
_________________


Kanman
Grand Admiral
Pitch Black


Joined: August 26, 2005
Posts: 1017
From: Virginia, United States
Posted: 2007-08-21 19:08   
1) Yes, I have the Z positions being computed as well, which is why I am not understanding why the most recently drawn polygon shows on top, even when there are pre-existing polygons in front of it.

2) Cant imagine why it would lag your system. This program is very small and simple.


[ This Message was edited by: Kanman *FC* on 2007-08-21 19:49 ]
_________________


Page created in 0.007584 seconds.


Copyright © 2000 - 2024 Palestar Inc. All rights reserved worldwide.
Terms of use - DarkSpace is a Registered Trademark of PALESTAR