Quick Search for:  in language:    
TRUE,D3D,3X3,Update,Added,option,allow,viewin
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 117. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!A Simple Database WIth XP Design ( Without XP )
By Osen Kusnadi on 7/1

(Screen Shot)

Fractional Addition
By SAEED HASSAN on 7/1


Defrag at certain time
By Michael Nipper on 7/1


Click here to see a screenshot of this code!Extended Find Ver 2
By Roger Gilchrist on 7/1

(Screen Shot)

Y! Module
By NightCrawler on 7/1


Files Comperator (the right way)
By Jarry Claessen on 6/30


Simple UDP example
By Mick Walton on 6/30


CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Stereo Vision, TRUE 3D! *Minor Update*

Print
Email
 
winzip icon
Submitted on: 1/8/2001 10:34:11 PM
By: Dennis C. Urie 
Level: Advanced
User Rating: By 28 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code 9719 times.
 
 
     Update: Added option to allow viewing model using a cross eyed method, as well as the original "wall eyed" method.<BR><BR> This program renders two images of a simple model from separate camera positions. When viewed similar to a Stereogram image it produces a TRUE 3 Dimensional view of an object. No special viewing devices are needed to view in full 3D. (See the help file for how to view it properly.)<BR><BR> This example uses custom D3DTLVertex (Transformed and Lit Vertices) for rendering. The program is responsible for the transforming and lighting of the 3D scene and only sends the screen coordinates, rhw, and color of each vertex to D3D for rendering.<BR><BR> This program implements most functions needed for 3D rendering in SOFTWARE including:<BR><BR> 3D Object Rotation using 3X3 Matrix Transformation<BR> Surface Normals<BR> Backface Culling<BR> 3D Projection to 2D screen<BR> Z Sorting<BR> Dynamic Lighting (Flat Shading and Gouraud Shading.)<BR>

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/9/2001 12:50:06 AM:Warren
Very nice! I give it 5 thumbs up, keep 
up the good work!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2001 10:32:24 AM:Max Seim
All I can say is WOW!
One interesting 
thing...
When I look at the sphere 
(globe), I
see it 'concave', whereas 
my wife sees
it as normal ... must be 
a right-brain
left-brain thing?
5 
stars on this one!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2001 6:57:58 PM:Dennis
Thanks for the positive feedback.  You 
are probably right about the left/right 
brain thing (in a way.)  What is really 
happening is that you are looking at it 
cross eyed as if the image was in front 
of the monitor.  However, the program 
is setup to be viewed as if the image 
was inside, or beyond the screen (wall 
eyed.)
After doing a little research 
I am starting to realize many more 
people view stereoscopic images cross 
eyed than I originally thought.  
Personally, I am not able to view them 
cross eyed no matter how hard I try.  
I will be making an update very 
soon (probably tonight) that adds the 
ability to swap the images to allow for 
cross eyed viewing as well.
Again, 
thanks for the feedback.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2001 7:00:47 PM:mwcStudio.com
Great code.
How can I import 
WRL(VRML2.0) files to this program from 
Photo Modeler Lite ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2001 12:35:48 AM:Eisen Teo
This is just the thing I need to learn 
some parts of Direct3D. Great job.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2001 4:21:47 AM:Robert Rayment
I have DirectX8 but get Automation 
error. Any idea what this might be?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2001 4:39:01 AM:Robert Rayment
My Automation error was caused by not 
having the Graphics Performance set to 
maximum.  I usually have it down a 
notch or two because not all VB 
graphics will work at maximum!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2001 4:59:42 PM:Dennis
Robert, I sent you an e-mail requesting 
a little more info.  Thanks for 
reporting the error.
mwcStudio,  I 
only intended to use custom models so I 
could have more control over the 
rendering.  I have however checked out 
some .wrl files
and think I may be 
able to write a conversion program.  
There will be quite a few limitations 
though.  I'll post again after I take a 
better look at it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/11/2001 2:02:39 PM:Simon Price
This is a cool example. It makes your 
eyes hurt, but it's good :) Here, have 
a well deserved excellent vote.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/12/2001 6:15:41 AM:Mikie
Well done! Brillient interface and a 
stunning effect.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/14/2001 3:28:20 AM:Keny
Very Good !
I give you à 5 stars 
!
But i would like if it posible to 
make a 3d maker ? Your fikles seems to 
be easy to write but i would like to 
make more complex 3d form !
Anyway 
explain me a liter more how to make 
these 3d things ...
Very good 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/11/2001 6:42:33 PM:Viper Technologies
Where can I download DX8? I can't find 
a download on msdn.microsoft.com. If 
possible, could someone just send me 
the library (DX8VB.dll or something)?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/12/2001 5:50:42 PM:wowowowow
holey sh*t!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/20/2001 5:14:11 PM:Shawn Elliott
DirectX 8 is at 
www.microsoft.com/directx
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/23/2001 10:46:29 PM:Paul Rosebush
Great Demo, reminds me of a 3d demo we 
used in mech eng which utilized the 
red/green lines...images stand off a 
flat surface, you reach for and think 
you can touch them. As in 3d 
photography where two images are taken 
at different angles similar to the 
space between our eyes thus crossing of 
the eyes is necessary to see the image 
in true 3d visual. Again, good demo and 
I will try to write someting that 
displasy the version I mentioned. keep 
up the good work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/8/2002 1:14:25 PM:beastz
I have to give this 5. Its brilliant.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/9/2002 12:45:14 PM:Andrew Boey
FIVE - E globe for you my man!!
Great 
clean work!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/10/2002 11:03:07 AM:Kalai Ace
Amazing work!
Hope to see more great 
code from you.
5 globe from me. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.