Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 1st, 2006, 01:19 AM
Registered User
 
Join Date: Aug 2006
Location: Eastleigh, n/a, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default writing files

i would like to write a file in wich 3d modles will be stored so that users can load them onto a panel

What would be the basic prosses for me doing this

ABell
Reply With Quote
  #2 (permalink)  
Old August 2nd, 2006, 08:23 AM
Authorized User
 
Join Date: Jun 2006
Location: boston, MA, USA.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well u cant stroe 3d models directly into a file , i suggest the following approach,
1] Have a ThreeDModel Class that has all the data associated a particualr 3D model.
2] Now u can create a 3DModel object from such a class by creating a object and setting the necessary parameters for that object.
3] Now Have a XML file called as ThreeDInfo.xml , which will have the following structure.

<Models>
   <Model>
        <Attr 1> </Attr 1>
        <Attr n> </Attr n>
  </Model>
</Models>

The attributes are the properties of a 3D model.

Now when u want to render a model u can directly read the XML file to get the particular model.

If this doesnot work for u , do reply back :)

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
writing and reading files on HDD from VBA out5yder Access VBA 3 October 6th, 2005 02:43 AM
Writing Files that can't be read Ron_Bingham BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 April 23rd, 2005 02:25 PM
Writing data to binary files maniac_ie C++ Programming 2 February 24th, 2004 12:30 PM
Reading data from files and writing it to database enggalok VS.NET 2002/2003 1 February 24th, 2004 12:33 AM



All times are GMT -4. The time now is 08:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.