## Demo programming

Moderators: None (Apply to moderate this forum)
Number of threads: 150
Number of posts: 326

This Forum Only

Bendy Sky Effect? And Free Direction Tunnel? Posted by skonky79 on 13 Aug 2001 at 5:14 PM
Hi everybody! The effect I am really curious about is the one that you get in PSone Colin McRae Rally and er, this other, puzzle game I can't really remember where you are a ball rolling along a- never mind. Anyway, the effect is with the sky in the backround which is kind of warped and also wraps around nicely. It looks just like the real sky! I mean it is bent. I'm sorry I can't describe it it technical terms, I'm just a beginner but this is an effect I would like to emulate. Examples in C, Assembler and Basic much appreciated. Or just a description of the algorithm.

Also, if you're not too busy laughing at me for my stupidity could anyone tell me what this means in real *lay* terms, I know it supposed to be easy to understand but I have an A-Level in Maths and I have no clue what it means

"Well, basically the algorithm consists of shooting a ray through each pixel of the screen and check for intersections of this ray with objects in the scene. Let's start with the equation of a ray. A ray is defined as
Origin + t*Direction
where Origin is the vector of the camera, and Direction a normalized direction vector. t is a float that indicates a position on the ray. "

Wha? Could you do a drawing? Vector of the camera as in the direction it faces? As in the position? Is it a number or a matrix? Huh? What? Could anyone give me a SIMPLE SIMPLE explanation?
Thank you in advance.

## Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.