Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (685)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  3-D Model and clothing  (Read 2515 times)
0 Members and 1 Guest are viewing this topic.
Offline Archbob

Junior Newbie

Java games rock!

« Posted 2003-05-19 21:42:31 »

Hey, I'm looking for a source code to an applet that lets you change outfits on a 3-d model. How do I do have it so when you click on a certain costume, it puts that costume on the model. Is there anywhere with example and source code?
Offline shawnkendall

Senior Devvie

« Reply #1 - Posted 2003-05-20 11:33:39 »

This is a pretty high-level request for source code.

You will need several things to do this.

1) The 3D content, i.e. the models.  The character model and the "clothes" models if they are static.

2) If the clothes are meant to move, you will need a physics simulator for the cloth surface, as well as collision geometry for your character and the cloth itself.

3) If the clothes are static, then you just need to load the different models and use a Switch node or similiar along with some mouse click code or other UI to make the switch happen.

3) A Java3D content loader that supports loading whatever your model format is.  Often this loader is really in combination with whatever software you are modeling in and the classes meant to manipulate the model in Java3D.  It is the "glue" between the export content and the run-time interactivity.

Hope that gives you some more ideas!
Good luck!

Shawn Kendall
Cosmic Interactive, LLC
Offline Archbob

Junior Newbie

Java games rock!

« Reply #2 - Posted 2003-05-20 13:41:47 »

Well, I have the 3-d model source code, I just need some info on the click and put on cloth part. I'm not sure how to do the action handler.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Breakfast

Senior Devvie

for great justice!

« Reply #3 - Posted 2003-05-20 19:25:01 »

So are the clothes a set of static models? You're not looking to put together any kind of cloth simulation?
Offline Archbob

Junior Newbie

Java games rock!

« Reply #4 - Posted 2003-05-20 20:52:49 »

Most likely static models to put on 3-d models. Its like a virtual try-on type of thing.  I'll work on rotating after I get it to work.
Offline Breakfast

Senior Devvie

for great justice!

« Reply #5 - Posted 2003-05-22 10:37:28 »

So you just need to load in the 3D models and then place the appropriate clothing at the same location as the model?

I think the way to do this uses SwitchGroups, but as I haven't got that far on the vaguely similar project I'm working on, I can't be a huge help beyond that, I'm afraid...
Offline Vrml_Java_Animator

Senior Newbie

Web Animation with VRML,  Java3d & pure Java

« Reply #6 - Posted 2003-05-23 01:39:37 »

Putting clothing on beautiful avatars isn't necessary.

They won't catch cold.

 "Picking" is the method of recieving mouse down events
on the model, I've done it with a Java3d Chess Player
that allows you to have the Chess Player Avatar
reach for, grasp, lift, and move the chess pieces for you,
and Selman has a nice demo in his Java3d book
using VRML & the Sun VRML Loaders.

Nasa has Java3d demos that allow adding elements
during run-time, and uses the VRML & the
 ___ Sun VRML Loaders ___ ( see below for both )

The " Fashion Show " demonstrates dressing & undressing
models, and having them walk as you command with Java,
in a browser, using the / Eyematic Java 1.1
Engine ( not Java3d ) -- see below, it's the best demo I've seen !


| Hey, I'm looking for a source code to an applet
| that lets you change outfits on a 3-d model.
| How do I do have it so when you click on
| a certain costume, it puts that costume on the model.
| Is there anywhere with example and source code?

Nasa uses Java3d & the Sun VRML Loaders
for Web animation in a browser and
demos show how you can add parts

( adding clothing would be possible )

as you can see here ...

|  Animate 3D models    
|  Rotating Earth Globe    
|  Easy Add Geometry    
|  Adding Parts   ...
|  VRML using vrml97.jar  
^--- Mars Red Rover Robotic Explorer --v ( different VRML )

More VRML Models rendered with the Sun VRML Loaders:

< block quote from Sun's Java3d-interest list >

Load & Move VRML objects with Click Picking ( Chess Player )

- features Human animated & under your control,
  you click on the chess board, he reaches,
  lifts & moves chess pieces ( moving the __ picked object __  
  to different locations  in the Scenegraph )

^--- Java3d Chess Player with You Picking the Moves --v

 Dress & Undress models on the fly: 3d "Fashion Show"

^-- human animation of seamless avatars with Java

Change 3d Furniture on the Fly ( Demo )
| Javascript makes it possible to add
| simple interaction between blaxxun3D and
| other elements on the HTML page.
| This document explains some of the enhancements
| that are possible by interfacing with blaxxun3D
| via Javascript. ...
| Let's have a look at the example below.
| Imagine a furniture scenario. You would like
| to present a table, which is available with
| different tops and legs. Instead of displaying
| each of the different tables in a separate image,
| you want to let the user decide the appearance
| of the table interactively.
| The two drop-down lists below the applet
| realize this functionality; the user can
| choose his favorite appearance. The javascript
| function 'setTable' receives the selected choices
| and updates the 3D model of the table. This is
| done by setting the whichChoice field of a
| switch node containing all possible appearances.

Scripting with Java3d & Sun's VRML Loaders by Nasa Staff

Sun's Loaders allow you to load & render VRML
in a browser and it's all done on the fly with
the full support of the modern object-oriented programming
language used in industry & academia: Java

Load & Animate VRML on the fly with Java3d w. Sun's Loaders

VRML, XML, & the Sun VRML Loaders are also used by the

___ Virtual "Lab3d" Chemistry Lab __ created in part

with ____ your money ___  by way of the NSF.

Virtual Chemistry Lab with VRML, Java3d, XML & the Sun Loaders

The Sun VRML Loaders for Java3d allow control of the VRML
objects via Java EAI Scripting.

-- Paul, Java Developer & Web Animator
Imaging the Imagined: Modeling with Math & a keyboard

 < end block quote >
 The ordering was changed, with permission of the author.


I've included both Java3d and 3d Java without Java3d
and I've done both, and done both with
  ___ the Same VRML Models ___
 using the Sun VRML Loaders and
the / engine,
and have written my own from scratch
3d animation engines & VRML Viewers.

Don't limit yourself to either,
Use what works best,
Try the Sun VRML Loaders.

The Sun VRML Loaders have worked well
for me, Nasa, the NSF Virtual "Lab3d" Chemistry Lab,
and just about everyone, except the guys
making the 'new' loaders at, or so they claim.

-- Paul, Java Developer & Web Animator
Imaging the Imagined: Modeling with Math & a Keyboard

Imaging the Imagined: Modeling with VRML, Java & Math
Offline skymusic

Innocent Bystander

Java games rock!

« Reply #7 - Posted 2003-05-23 04:52:30 »

Hello Smiley

Can i program 3D games with model that made by MAYA
and control with JAVA API ? Huh

ThanQ 4 Ur HELP  Wink
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (60 views)
2015-11-07 13:29:08

Rems19 (73 views)
2015-10-31 01:36:56

Rems19 (65 views)
2015-10-31 01:32:37

williamwoles (102 views)
2015-10-23 10:42:59

williamwoles (89 views)
2015-10-23 10:42:45

Jervac_ (102 views)
2015-10-18 23:29:12

DarkCart (130 views)
2015-10-16 00:58:11

KaiHH (112 views)
2015-10-11 14:10:14

KaiHH (151 views)
2015-10-11 13:26:18

BurntPizza (164 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!