Advertisement

Bugs in TexCoords in a tunnel!!!!!!

Started by August 12, 2001 10:55 AM
11 comments, last by XaOs 23 years, 6 months ago
Found the problem. Haven't found the solution...

The problem is in this line of code in your draw routine:

  texcord[i][j].u = j / 3 + cos(((Angle) + 8 * i) / 60) / 2;  


Specifically, it's that 8 up there that's the problem. I've replaced the 8 with a 1 and it works great, but it changes the effect, something I'm not sure you want done.

Really, I can't understand much of the equation at all. I understand that "j" deals with depth, and so j/3 is going to be constant. That's fine. Essentially you through that out.

Going around the circle deals with "i", and I'm lost within this part...

cos(angle + 8i/60) / 2

What's your rationale for that part?

~ Dragonus

Edited by - Dragonus on August 14, 2001 3:03:05 PM
Hi!!

Great work......

I have to tell you that i actually don''t get that line 100% myself!! You see....this little tunnel effect is based on a plasma tunnel that Jan Horn (Delphi programmer) made, and i am partly using some of his math stuff, cause i spent over 3 days trying to write one on my own that should do the same....but it didn''t work out really good! Ans as you can see, i can''t make it work really well with some of his math either!!

How ironic is that.....

I am going to see what happens if i doo what you said...but i think i know because the line looked awfully familiar....and i do think i have tried that before!!

Well.....anyways i wanna thank you for trying so hard!!

Keep it up...this forum needs people like you! !!

Take Care!!

- -- ---[XaOs]--- -- -
- -- ---[XaOs]--- -- -[ Project fy ||| CyberTux ]
Advertisement
THOSE WHO DO NOT GIVE UP, SHALL BE REWARDED!!!!!!


I was sitting in my chair...looking madly at the code...and i though.....what will happen if i remove that stupid I...?
So i removed it and bravely pushed F5.....and you know what?

It was the I.....it was one stupid little char who made that ugly line!!!!

I finaly made it..after 3 days of not understanding anything......can you understand how that feels?

(Now i sound like i have saved the world from destruction or something...he he...)!!

Thanx for helping me out here...

Take Care!

- -- ---[XaOs]--- -- -

- -- ---[XaOs]--- -- -[ Project fy ||| CyberTux ]

This topic is closed to new replies.

Advertisement