Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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

  #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

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.

        <Attr 1> </Attr 1>
        <Attr n> </Attr n>

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 :)

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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.