Go to Post We need to celebrate great things because good enough isn't inspiring. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2003, 21:23
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
C++/VB Direct3D Mesh Importing Help

I am trying to create a new dashboard program that is 3d using DirectX 8.1 but I'm having a lot of trouble. I was hoping that someone would be able to help me code a Direct3D interface in either C++ or VB that could import a .x mesh (converted from a .3ds) and rotate it as well as possibly make parts of it light up. If I can get this program working, I am planning to make it readily available to all teams. I hope someone can help me (I would prefer VB since I know it better but I know that you can do more in c++ so either will do). Thanks.
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #2   Spotlight this post!  
Unread 14-01-2003, 22:30
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
That's a HUGE question. Just getting a spinning cube takes many, many, many lines of Direct3D code. How far along are you? Do you know any DirectX?

Anyway, gamedev.net has some excellent DirectX tutorials and examples that you could look at.

BTW, what exactly are you going to make 3d?
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 14-01-2003, 22:31
Jeremy_Mc's Avatar
Jeremy_Mc Jeremy_Mc is offline
GitHubber
no team
Team Role: Mentor
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Orlando, FL
Posts: 496
Jeremy_Mc will become famous soon enoughJeremy_Mc will become famous soon enough
yes gamedev.net is an awesome place...

also check out www.pscode.com . there's some really useful stuff on there if you don't rip it off and actually learn from it...


*jeremy
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com
  #4   Spotlight this post!  
Unread 14-01-2003, 22:39
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
I've checked out gamedev and pscode and have used them for quite a while. As to rbayer's question, I've done a small bit in DirectX before (simple polygons with a tiny bit of rotation) using c++ and a bit more using vb. I once tried to import a .x mesh by way of the SDK tutorials but it didn't work correctly. I wasn't sure if it was my code, the .3ds file, or the mesh conversion... I would like to get it working though...
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #5   Spotlight this post!  
Unread 28-01-2003, 23:30
JonathanE JonathanE is offline
Registered User
#0619 (CA Robotics)
 
Join Date: Jan 2003
Location: Charlottesville, VA
Posts: 13
JonathanE is an unknown quantity at this point
Send a message via AIM to JonathanE
If I am reading this correctly, then if you can spare the time to write all the DX code, that would be a truly AWESOME dashviewer.

Are you talking about a rotating 3D model of your bot, with trouble spots or motor actions or sensor hits lighting up in their positions?

Waaaaayyyyy cool, man.

Sorry, I don't have a clue how to do it, but go for it!
Good luck!
__________________
Jonathan E
Team Co-Captain
Team Mentor - Strategy / Design
Student Lead Programmer
Student Lead WebDev
3D Animation Lead and Mentor
Student Lead Electrical / Control
~~~~~~~~
CA Robotics - 619
Charlottesville, VA
  #6   Spotlight this post!  
Unread 29-01-2003, 04:43
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
There are some great DX 8 tutorials at http://www.andypike.com/tutorials/directx8/. All of those tutorials are good, but the one you are looking for is "Loading Complex Models" where he loads a .x file of a spaceship model he made in milkshape and rotates it with 3 different viewports.
  #7   Spotlight this post!  
Unread 29-01-2003, 18:58
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Quote:
Originally posted by JonathanE
that would be a truly AWESOME dashviewer
You got it!
Quote:
Originally posted by Jay Lundy
http://www.andypike.com
That was where I started. I actually figured out the mesh loading but I'm having trouble modeling a low polygon robot. I'm doing it in Inventor, importing to 3DS, then exporting to .X. I want to make it completely open source and open it to all teams who want to use it. My new problem is that the dashboard port seems to be giving me weird input to the serial. I used the old viewer and it worked fine but the numbers I get are rediculous (negatives, etc)... Hopefully I can figure it out soon and I will upload the first version to our website (http://www.mvrt.org/team555 <--Under construction). I'm going to start a new thread on ideas for the 3D aspect. Please post any ideas you have.
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
omniwheels on steel mesh mickjagger Technical Discussion 14 26-01-2003 22:45
Which wire mesh will be used? Jacqui Sutton Rules/Strategy 1 07-01-2003 00:51


All times are GMT -5. The time now is 13:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi