Skip to main content
gamedev.net
🔒 Locked

Division by zero when using vertex array

Started by Jappie 0 replies 600+ views
Original Post
Jappie
Jappie
When I try rendering a terrain (from heightmap) using a vertex array, I get a floating-point division by zero whenever the z-coordinate passes a certain value. Rendering is fine when I use a simple brute-force approach. I made sure the generation of the vertex coordinates is correct, and when I move around the landscape not crossing that particular z-border, everything is rendered correctly as well. I also made sure there are no other divisions that could make a difference. Any ideas? ----------------------------- Jappie BabJap Productions "There''s no such things as bugs; they''re just unintentional extra features"
----------------------------- JappieBabJap Productions"There's no such things as bugs; they're just unintentional extra features"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.