♥ PosetteForever ♥
3D Nightmares... Or... The little sculptor - [Tutorial] Cars With Posable Pedals, Steering Wheel
goat4444 [ Friday, 02 February 2007, 02:31 PM ]
Post subject: [Tutorial] Cars With Posable Pedals, Steering Wheel
How about I start creating parts of the car that are poseable? Can I do this in 3D Studio Max? I want to do steering, especially pedals, gauges with needles, shifter, etc.
<br />
<br />
Thanks!
Tormie [ Friday, 02 February 2007, 07:38 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobr
Hi goat4444 and welcome to Posetteforever <img src="https://www.posetteforever.com/images/smiles/lol.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/thumb.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_clap.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_dance.gif" alt="" /> !
<br />
<br />
3D modelling is out of my knowledge <img src="https://www.posetteforever.com/images/smiles/icon_redface.gif" alt="" /> , However there are GREAT models makers here, I hope they will reply to you soon <img src="https://www.posetteforever.com/images/smiles/eusa_pray.gif" alt="" /> . About the cobra you could import it in 3d studio and look at VK's technique or ask him directly
VK [ Tuesday, 06 February 2007, 03:14 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Hi goat4444,
<br />
<br />
You can use any 3D modeler like 3DS Max to make a car model with poseable parts.
<br />
<br />
If I understand your question correctly, you'd like to use the car model in Poser. Here is a brief overview of the major steps:
<br />
<br />
1. Prepare the geometry for your Poser model.
<br />
The car model in Poser is a figure with several body parts. Poser will load the model from (usually) a single Wavefront .obj geometry file.
<br />
<br />
The .obj file must have group definitions, that is, each part of the geometry is a group with a group name. You can define and export .obj groups in 3DS Max and most other 3D modelers.
<br />
<br />
The groups in the .obj file are used to identify the parts in Poser. Usually, each group in the .obj file is an actor (body part) of the Poser figure. The .obj file of the car model has for example groups "car", "steering", "pedal", etc. The Poser figure library has actors "car", "steering", "pedal", etc. Poser treats the corresponding geometry group as a separate object.
<br />
<br />
There are other ways to achieve the same result: You can create the parts separately and load each part into Poser. Then you assemble the parts (car, steering, pedals, etc.) in Poser and export all parts from Poser to a single .obj file. When you use the proper export options, each part will be a group in the .obj file.
<br />
<br />
Or, you define a Poser figure library which uses many different .obj files, one for each actor. In this case, you simply create an .obj file for the car, one for the steering, another one for the pedal, etc. In the Poser figure library, actor "car" will load the "car.obj", actor "steering" will load the "steering.obj", etc.
<br />
<br />
2. Prepare the Poser figure library (.cr2).
<br />
When your figure .obj is ready, you define a .cr2 figure library to use the model in Poser. To create the .cr2 in Poser 5 or later, you can use one of the "rooms". There are several utility programs (I guess) which can create .cr2 libraries.
<br />
Alternatively, you can write a ".phi" text file ("Poser Hierarchy File") and use the "Convert Hierarchy File..." command to convert the .phi to a .cr2 library.
<br />
<br />
Your .cr2 file defines a hierarchy among the actors. For example, actor "steering" and "pedal" are children of actor "car". Furthermore, the .cr2 defines whether the seams of two actors are glued together or not. The parts of a car are typically not glued. The .cr2 can include additional actors which have no corresponding geometry.
<br />
<br />
The .cr2 defines a pivot ("origin") for each part, and "channels" to perform standard transformations (rotate, translate, scale, etc.). These standard channels are automatically included when Poser creates your .cr2.
<br />
<br />
3. Tune your .cr2.
<br />
Once your .cr2 exists, you can adjust the actors properties in Poser or edit the .cr2 in a text editor.
<br />
<br />
When you want a poseable steering wheel, for example, you center the pivot of actor "steering" and adjust the "orientation" angles if necessary. Poser displays dials for the "rotate" channels in the dials palette. To turn the steering wheel, you just set the proper "rotate" dial. You can rename dials, hide not used dials, and set channel limits, to make a user-friendly interface.
<br />
<br />
That's it. Since most of the parts of a car perform very simple motions, you don't need additional channel code. The opening doors, hood, trunk lid, wheels, and gauge needles are all simple rotations.
<br />
<br />
4. Customize your .cr2.
<br />
You can add non-standard code to your .cr2 if you want special behavior of your moving parts. You can for example use the "PointAt" constraint to implement automatic orientation of your moving parts, use "alternate geometry" to load or modify parts of the car model, or use Morph Targets to deform the geometry.
<br />
<br />
You can use "ERC" code to synchronize several moving parts. For example, you include code to turn the steering wheel and the front wheels accordingly when a single "Steer" dial is set.
<br />
<br />
To learn more about ERC code, you can download my ERC tutorial here:
<br />
<a class="post-url" href="http://www.atlantis23.com/erc_download.html" target="_blank">http://www.atlantis23.com/erc_download.html</a>
<br />
<br />
There is a code example for the steering mechanism in Chapter 3 of the tutorial.
<br />
<br />
Hope this is the information you're looking for.
<br />
<br />
VK
Posy [ Tuesday, 06 February 2007, 03:15 PM ]
Post subject:
I fail to see the relevance of that allusion. Do you think I should alter my programming? Two what? I don't know when. Can you think of another example? Then what is it? Three what? "" is "rename dials hide not used dials and set channel limits to make a user-friendly interface"? Oh four.
Tormie [ Tuesday, 06 February 2007, 03:25 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobr
Thank you for the tutorial VK <img src="https://www.posetteforever.com/images/smiles/lol.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/thumb.gif" alt="" />
JanReinar [ Tuesday, 06 February 2007, 03:52 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Thanks for the tutorial VK ! <img src="https://www.posetteforever.com/images/smiles/smile.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/thumb.gif" alt="" />
ahjah [ Tuesday, 06 February 2007, 11:35 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Great information by the master himself <img src="https://www.posetteforever.com/images/smiles/thumb.gif" alt="" /> (I'm still in love with the Vespa <img src="https://www.posetteforever.com/images/smiles/heartbeat.gif" alt="" /> )
Posy [ Tuesday, 06 February 2007, 11:35 PM ]
Post subject:
Thanks for your support. I do not understand.
ahjah [ Tuesday, 06 February 2007, 11:37 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Too much input, though! <img src="https://www.posetteforever.com/images/smiles/lol.gif" alt="" /> Posy seems a bit confused <img src="https://www.posetteforever.com/images/smiles/wink.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/lmao.gif" alt="" />
Posy [ Tuesday, 06 February 2007, 11:37 PM ]
Post subject:
Oh. Try saying that with more context.
Tormie [ Tuesday, 06 February 2007, 11:58 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobr
Yep I like the Vespa a lot <img src="https://www.posetteforever.com/images/smiles/heartbeat.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/heartbeat.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/heartbeat.gif" alt="" /> I made a lot of pics with her ! What about another little scooter <img src="https://www.posetteforever.com/images/smiles/eusa_whistle.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_whistle.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_whistle.gif" alt="" /> ? Maybe a Lambretta <img src="https://www.posetteforever.com/images/smiles/lol.gif" alt="" /> !!
<br />
<br />
here is Clara <img src="https://www.posetteforever.com/images/smiles/heartbeat.gif" alt="" />
goat4444 [ Wednesday, 07 February 2007, 12:06 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobr
WOW! I'll give it a try!
<br />
<br />
Thanks!
Whazizname [ Wednesday, 07 February 2007, 08:19 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Thanks for the info VK.
<br />
<br />
Let me see if I'm understanding this though:
<br />
<br />
1.) Save imported obj as cr2 (to figure library).
<br />
<br />
2.) Set rotation and dial limits.
<br />
<br />
3.) re-save cr2.
<br />
<br />
? is that the short version of what you said?
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
VK [ Wednesday, 07 February 2007, 11:31 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Yes, these are basically the steps you have to do. Unfortunately, the process is a bit complicated when it comes to the details.
<br />
<br />
1. You can't safe the imported obj directly as a cr2 figure library.
<br />
When you have the obj, someone or something must create a first version of the cr2 based on this obj. In Poser 5 or later, you take the obj into the "figure-creation-room". I don't know the name of the room because I use Poser 4.
<br />
<br />
In Poser 4, you write a "phi" file. In this file you specify the name and path of the obj which should be used for the cr2 creation. I usually place the obj file in the Geometries folder. In Poser, you choose the "Convert Hierarchy file..." and Poser creates the new cr2 library and puts it into the "New Figures" folder of the Character libraries. The new cr2 will use the obj at the path you specified in the phi file.
<br />
<br />
The "phi" method is old-fashioned but still the best when you create a complicated model with many parts. The following code is the phi file for the cobra. You can see the obj file, the actors, their hierarchy, and rotation order. Each actor is a group name in the obj, and will be the name of the body part in the cr2.
<br />
<br />
2.+3. Once you have the first version of the cr2, you load the cr2 in Poser from the figure library, set rotations and dial limits, and re-save the cr2 to the library.
<br />
<br />
At this point, you can load the model from the new cr2 library and you have a working model in your scene.
<br />
<br />
However, you a lot of work can't be done in Poser. When Poser creates the cr2, it assumes you want to make a human or animal. A lot of code in the cr2 is used for this sort of soft-body models. When you make a car, you will adjust or remove this code from the cr2. So, you usually edit the cr2 in a text editor and then go back to Poser, load the cr2, and check the modifications.
<br />
<br />
BTW, thanks for the cool textures, Whazizname <img src="https://www.posetteforever.com/images/smiles/smile.gif" alt="" />
<br />
<br />
<!-- no smilies start --><div class="code"><div class="code-header" id="codehdr2_f5ea9e3e" style="position:relative;">Code: [<a href="download_post.php?post=34721">Download</a>] [<a href="javascript:void(0)" onclick="ShowHide('code_f5ea9e3e','code2_f5ea9e3e','');ShowHide('codehdr_f5ea9e3e','codehdr2_f5ea9e3e','')">Hide</a>] [<a href="javascript:void(0)" onclick="select_text('code_f5ea9e3e')">Select</a>]</div><div class="code-header" id="codehdr_f5ea9e3e" style="position:relative;display:none;">Code: [<a href="download_post.php?post=34721">Download</a>] [<a href="javascript:void(0)" onclick="ShowHide('code_f5ea9e3e','code2_f5ea9e3e',''); ShowHide('codehdr_f5ea9e3e','codehdr2_f5ea9e3e','')">Show</a>]</div><div class="code-content" id="code_f5ea9e3e" style="position:relative;"><span class="code-row-text">objFile :Runtime:Geometries:cobra:ac427sc.obj
<br />
<br />
1 car yzx
<br />
2 doorL yzx
<br />
2 doorR yzx
<br />
2 trunk xyz
<br />
2 hood xyz
<br />
2 windshield xyz
<br />
3 windowL yzx
<br />
3 windowR yzx
<br />
3 sunscreenL xyz
<br />
3 sunscreenR xyz
<br />
3 wiperpivotL zxy
<br />
4 wiperarmL xyz
<br />
5 wiperbladeL xyz
<br />
3 wiperpivotR zxy
<br />
4 wiperarmR xyz
<br />
5 wiperbladeR xyz
<br />
2 seatL yzx
<br />
2 seatR yzx
<br />
2 bumperF yzx
<br />
2 bumperB yzx
<br />
2 dashboard yzx
<br />
3 glovecomp xyz
<br />
3 steeringshaft zxy
<br />
4 steeringwheel zxy
<br />
4 blever zxy
<br />
3 dial1 zxy
<br />
3 dial2 zxy
<br />
3 dial3 zxy
<br />
3 dial4 zxy
<br />
3 dial5 zxy
<br />
3 dial6 zxy
<br />
3 dial7 zxy
<br />
2 gearshift yzx
<br />
2 handbrake xyz
<br />
2 pedalL xyz
<br />
2 pedalC xyz
<br />
2 pedalR xyz
<br />
2 chassis yzx
<br />
3 uparmFL zxy
<br />
3 loarmFL zxy
<br />
4 bearingFL yzx
<br />
5 axleFL xyz
<br />
6 wheelFL xyz
<br />
7 spinnerFL xyz
<br />
4 rodFL yzx
<br />
4 saFL zxy
<br />
3 sapistonFL zxy
<br />
3 uparmFR zxy
<br />
3 loarmFR zxy
<br />
4 bearingFR yzx
<br />
5 axleFR xyz
<br />
6 wheelFR xyz
<br />
7 spinnerFR xyz
<br />
4 rodFR yzx
<br />
4 saFR zxy
<br />
3 sapistonFR zxy
<br />
3 axleBL xyz
<br />
4 bearingBL xyz
<br />
5 wheelBL xyz
<br />
6 spinnerBL xyz
<br />
4 rodBL xyz
<br />
4 saBL zxy
<br />
3 sapistonBL zxy
<br />
3 axleBR xyz
<br />
4 bearingBR xyz
<br />
5 wheelBR xyz
<br />
6 spinnerBR xyz
<br />
4 rodBR xyz
<br />
4 saBR zxy
<br />
3 sapistonBR zxy
<br />
3 cooler yzx
<br />
3 engine yzx
<br />
</span></div></div><!-- no smilies end -->
Whazizname [ Thursday, 08 February 2007, 01:45 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Thanks for the additional info VK.
<br />
<br />
Now I have to see if Poser 5 can use the "phi file method".
<br />
Poser's expectation that a figure is a humanoid has been the problem for me. I have a car that has been in the "set-up room", and all the groups are available; but I'm unclear as to where/ how to add bones.
<br />
<br />
It seems like I will need to use ERC because the car I've chosen has "Scissor type" doors. <img src="https://www.posetteforever.com/images/smiles/rolleyes.gif" alt="" />
<br />
<br />
Also;
<br />
It was my pleasure to create the textures for the Cobra & Vespa {in fact, there are a few un-released ones still floating about in my runtimes...}. I am pleased that so many people thought that they were useful. (Over 800 Cobra downloads since I posted the textures!)
<br />
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
melamkish [ Thursday, 08 February 2007, 02:53 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobr
VK, thanks for the tutorial links. They are quite timely since I have been experimenting with ERC's.
<br />
<br />
Whazizname, a good way to get a general concept of boning is to open an existing file, such as the cobra, go into the setup room and see how it is rigged. You will probably get a warning about morphs may become unusable, but as long as you don't save or change anything, all will be fine. Looking at a couple of vehicles would show how the creator set up the bone and rigging. Don't forget to look at how the joint parameters are set up. I usually set the mat spheres display to wire frame, so I can see the areas of influence.
<br />
<br />
Once you see how something is boned and rigged, then you can begin to see how to do your own figure. Creating the bones is pretty easy once you get the hang of it. The time consuming part will be adjusting all the joint parameters and mat sphere settings to get the figure to respond to your dials. As you experiment, take a little extra time to write down your settings. This has been a real help as it gives you a reference point to go back to if you mess up (has saved me many times). If your are working on symmetrical parts of a model, Poser's symmetry tools can transfer joint parameters from one side setup to the other. Another big time saver.
Whazizname [ Sunday, 11 February 2007, 11:18 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Thanks for the additional tips melamkish.
<br />
<br />
Now that i have conquered the household flu virus; I'll look into this some more.
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
VK [ Wednesday, 21 February 2007, 12:07 PM ]
Post subject: Making A Car Figure Tutorial
Ok, here is a beginner's tutorial on how to make a car figure in Poser 4:
<br />
<br />
1. We make a simple car in the modeler. The example model has only the most important parts: floor, wheels, and pedals. If your modeler can export Wavefront obj groups, you can name the parts and then export as obj.
VK [ Wednesday, 21 February 2007, 12:09 PM ]
Post subject: Making A Car Figure Tutorial
2. Import the model as a prop in Poser. Be sure to choose some "Percent of standard figure size", if your modeler exports the model in very large dimensions. Check if all parts are imported. You often get reversed normals on some parts, like the wheels of our car model.
<br />
<br />
You can't create texture coordinates in Poser. You have to map the model in your modeler or with a mapper software before you import it. If your modeler exports a mat file associated with the obj, Poser will import the material definitions from the mat file. If your modeler exports "usemtl" tags in the obj, you can assign materials in Poser with the Group Editor.
VK [ Wednesday, 21 February 2007, 12:11 PM ]
Post subject: Making A Car Figure Tutorial
3. The parts of your model are groups of the Poser prop. Open the Group Editor and check if all group names are present and correct.
<br />
<br />
You can easily fix the reversed normals of a group with the "Reverse Group Normals" button in the Group Editor.
VK [ Wednesday, 21 February 2007, 12:13 PM ]
Post subject: Making A Car Figure Tutorial
4. Load a Poser human as a reference to scale your model properly. Place the model where the figure library should load it. A car model is usually placed on the ground in the center of the scene facing the front camera.
VK [ Wednesday, 21 February 2007, 12:15 PM ]
Post subject: Making A Car Figure Tutorial
5. Now the model is a single object with geometry groups. You can export this model and use it as figure geometry file. If your model geometry is a skin (like a human or animal), you should use the "welded" geometry. In this case, the seams of the groups share the same vertices.
<br />
<br />
If you make a hard body model like a car, the parts are usually not welded. In this case it's a good idea to break the single geometry into pieces, and export the pieces in a single obj file.
<br />
<br />
Open the Group Editor and hit "Spawn Props" to create a new prop for every geometry group f the original object. Your scene is now populated with several props. Be sure to delete the original object, otherwise you have a duplicate of the geometry in the scene.
VK [ Wednesday, 21 February 2007, 12:17 PM ]
Post subject: Making A Car Figure Tutorial
6. Write a phi text file. The phi starts with the line
<br />
<br />
objFile :Runtime:someFolder:otherFolder:objfilename.obj
<br />
<br />
which is the file path of the obj file used to create the figure. This is the folder where you will place your obj. The phi lists all parts of the figure (except for BODY), the hierarchy level, and the rotation order. The parts are the props you have in your scene. Be sure to use the exact names of the props.
<br />
<br />
Save the phi file in the same folder, that is, the directory you defined in the first line of the phi.
VK [ Wednesday, 21 February 2007, 12:18 PM ]
Post subject: Making A Car Figure Tutorial
7. Export the props from Poser to create the new obj file. Use the export option "Include body part names in polygon groups", which will use the prop names as group names in the obj.
<br />
<br />
Save the new obj in the directory you defined in the phi file.
VK [ Wednesday, 21 February 2007, 12:20 PM ]
Post subject: Making A Car Figure Tutorial
8. Choose the "Convert Hier File..." menu, choose your phi file, and convert. Poser tries to find the obj file and to parse the phi file, and generates a new figure library (.cr2) for the model. Enter a name for the new library. The new figure is placed in the "New Figures" folder.
<br />
<br />
Save and close your pz3 document. You should keep the file because it contains a backup of your original figure geometry.
VK [ Wednesday, 21 February 2007, 12:21 PM ]
Post subject: Making A Car Figure Tutorial
9. Open a new document. Load the new figure from the Characters palette. Before you do anything else, save a new .cr2 from the loaded figure, and replace the original library. The hierarchy converter in Poser 4 writes a library version which is for some reason not compatible with the Joint Editor. When you save the library from a document, Poser 4 writes a correct .cr2.
<br />
<br />
10. Delete the existing figure in the document. Load a new figure from the new library. Open the Hierarchy Editor and check if all parts are there and if the figure hierarchy is what you expect.
<br />
<br />
The parts of a car don't deform like a limb of a human, when you move them. Because of this, you have to turn off the "Bend" option of each part. Select each part and uncheck the "Bend" option in the Properties window.
<br />
<br />
Deactivating the "Bend" option disables the joint deformation engine. However, the joint definitions are still in the cr2. If you want to remove the code (a lot of code, actually) you have to edit the .cr2 in a text editor.
VK [ Wednesday, 21 February 2007, 12:23 PM ]
Post subject: Making A Car Figure Tutorial
11. Now you can adjust the joints of the car parts. Open the Joint Editor, select the parts and examine the center points. The center point (origin) of a part is displayed as a green crosshair in the scene. The origin is the rotation center and the reference point for scaling. For example, the origin of a wheel should be centered such that the wheel rotates about its center.
VK [ Wednesday, 21 February 2007, 12:24 PM ]
Post subject: Making A Car Figure Tutorial
12. For example, the pedals should rotate about the hinge where the pedal is mounted on the floor. Select a pedal body part and move the green crosshair to the appropriate position.
VK [ Wednesday, 21 February 2007, 12:26 PM ]
Post subject: Making A Car Figure Tutorial
13. All body parts have 3 rotate dials. Select a pedal and try which rotation to use (xRotate in this case). Check which rotation direction you need and how far the pedal should rotate. The example pedal should xRotate by +40 degrees.
VK [ Wednesday, 21 February 2007, 12:27 PM ]
Post subject: Making A Car Figure Tutorial
14. Open the parameter window of the xRot dial. Choose "Min Limit" 0 and "Max Limit" 40. Name the dial, for example, "Push". Now when you activate the "Use Limits" option (Figure menu), the pedal will move only within the limits. That's it. Your car model is ready.
<br />
<br />
Some modifications of the cr2 can't be done in Poser. For example, you might want to hide or even remove the yRot and zRot dials on the pedals, since you don't use them. Poser adds translate dials to every body part. These dials are by default only visible in the root actor and in the goal of an activated IK chain. If your part uses a translation, you have to open the cr2 in a text editor and make the dial visible.
ahjah [ Wednesday, 21 February 2007, 02:09 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
<img src="https://www.posetteforever.com/images/smiles/eusa_clap.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_clap.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_clap.gif" alt="" /> Great tutorial, thanks a lot, VK! <img src="https://www.posetteforever.com/images/smiles/eusa_dance.gif" alt="" />
Whazizname [ Wednesday, 21 February 2007, 04:26 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Yes, Thank you VK!
<br />
<br />
{I just took the time to see if the"phi text" method was available to P5 users;...
<br />
The manual says: "Figure creators wishing to use the old method should refer to the electronic Poser 3 Advanced Techniques document, which covers the old figure creation method in detail. This document is in PDF format and is included on your Poser 5 content CD in the documentation folder."
<br />
It is not on my version of the CD. <img src="https://www.posetteforever.com/images/smiles/rolleyes.gif" alt="" /> }
<br />
<br />
{ I did however notice a bunch of free content (including morph targets for Don & Judy) that I did not remember were there. :grin:}
<br />
<br />
Now having said that;... How can a P5 user make use of this beginner's tutorial?
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
Whazizname [ Wednesday, 21 February 2007, 06:05 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
WhooWeee!
<br />
<br />
I was able to download the "Poser 3 Advanced techniques" document from eFrontier.
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
goat4444 [ Friday, 16 March 2007, 08:30 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Great detail in here!
<br />
<br />
So, if I have an existing car model, with pedals that don't move, hoe can I make them move?
<br />
<br />
Thanks!
Whazizname [ Tuesday, 20 March 2007, 01:37 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
I'm with Goat on this...
<br />
I think that I need a "hand-holding type" tutorial on how to rig a car model in P5.
<br />
<br />
I looked at already poserized vehicles (The Cobra, The Veepster, a Hummer, and others); but they only helped to confuse me more as to where the bones need to be.
<br />
<br />
As for the phi file, whew... I think I understand how to make it; but I am unclear when to make it; or even if I need to make it in P5.
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/eusa_think.gif" alt="" />
<br />
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
VK [ Tuesday, 20 March 2007, 11:16 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Sorry, I can't help with the Setup room in Poser 5 and later. However, the steps are always the same.
<br />
<br />
Maybe it helps when I try to answer your questions.
<br />
<br />
@goat4444:
<br />
Make the first step: Import the existing car model into Poser (menu "Import > Wavefront OBJ").
<br />
Once you see the car model in Poser, open the Group Editor and check if there is for each pedal a group including only the pedal geometry.
<br />
<br />
You always have to start with a properly grouped model. So this is always the first step. Please ask for more information if you don't know how to import the model or how to use the Group Editor.
<br />
<br />
If the car model has no groups for the pedals, you need to group the model. This can be done in your modeler or in Poser. If you don't know how to group the model please ask here for more information.
<br />
<br />
If your car model has groups for the pedals, you're ready for the next steps:
<br />
- Scale the model if necessary.
<br />
- Place the model in the Poser scene where you want it to load.
<br />
- Adjust reversed normals if necessary.
<br />
- Use "Spawn Props" in the Group Editor to create props from the model groups.
<br />
- Delete the original car model.
<br />
- Export all the props to create the figure obj file.
<br />
<br />
If you don't understand these steps, please ask for more information.
<br />
<br />
Once you have the figure obj file, you can start to create the .cr2 (rig the model), see below.
<br />
<br />
<br />
@Whazizname:
<br />
I'm sure there are tutorials how to use the Setup room in Poser 5 or later to rig the model.
<br />
<br />
The phi-method is usually much faster (and painless, too). Here's some more information:
<br />
<br />
1. You can create the phi-file at any time. I usually make the phi when I have spawned the props in Poser. This way I can see the exact group names and make sure that all groups are included in the phi.
<br />
<br />
2. Usually, the car rig should be very simple. The simpler the better. You have a root object (the car body), and all parts are attached to the car body (like wheels, doors, pedals, etc.). Because of this, the phi is also very simple. You can use the following code as a template.
<br />
<br />
<!-- no smilies start --><div class="code"><div class="code-header" id="codehdr2_161562f1" style="position:relative;">Code: [<a href="download_post.php?post=35048">Download</a>] [<a href="javascript:void(0)" onclick="ShowHide('code_161562f1','code2_161562f1','');ShowHide('codehdr_161562f1','codehdr2_161562f1','')">Hide</a>] [<a href="javascript:void(0)" onclick="select_text('code_161562f1')">Select</a>]</div><div class="code-header" id="codehdr_161562f1" style="position:relative;display:none;">Code: [<a href="download_post.php?post=35048">Download</a>] [<a href="javascript:void(0)" onclick="ShowHide('code_161562f1','code2_161562f1',''); ShowHide('codehdr_161562f1','codehdr2_161562f1','')">Show</a>]</div><div class="code-content" id="code_161562f1" style="position:relative;"><span class="code-row-text">objFile :Runtime:Geometries:cartest.obj
<br />
<br />
1 cargroup yzx
<br />
2 wheelgroup xyz
<br />
2 doorgroup zxy
<br />
2 hoodgroup zyx
<br />
2 pedalgroup yxz
<br />
<br />
</span></div></div><!-- no smilies end -->
<br />
<br />
When you use the template, you insert your group names and add more actors (for the wheels, for example).
<br />
<br />
- The "objFile" line: This is a file path using the ":" separator. The line starts with the word "objFile", followed by a space or tab, followed
<br />
by ":Runtime", followed by the path to your obj file. Use the exact filename of your obj. The line must end with a return.
<br />
<br />
- Write a line (a full line ending with a return) for each actor.
<br />
<br />
- Each line starts with the hierarchy level (a number), followed by a space or tab.
<br />
<br />
The logic of these numbers is simple: The root actor has number 1. This actor will be the child of actor BODY in the figure. Most objects like humans and cars have a single root actor. However, you can define several root actors, for example two roots for two faerie wings. All actors with number 2 are children of the root actor. These parts are attached to the root actor.
<br />
<br />
All actors with a higher number are children of the prior actor with the prior number. For example, a "3" actor is a child of the "2" actor in the latest preceding line:
<br />
2 foo
<br />
3 foochild
<br />
3 foochild2
<br />
2 goo
<br />
3 goochild
<br />
3 goochild2.
<br />
<br />
- Each line lists the exact group name, followed by a space or tab. Spaces are not allowed in the group name, and your obj must not contain groups with spaces.
<br />
<br />
- Each line ends with a rotation order flag, followed by a return. The rotation order is for example "xyz". The above template can be used for a car model facing the front camera (the usual setup).
<br />
<br />
- Be sure to finish the phi file with a return to make a full line for the last actor.
<br />
<br />
- The rotation order is crucial when you make a soft body model, because Poser tries to set up complicated joint parameters for the figure. You don't need these parameters in a car model, so you don't need to care for this stuff. Once you have the .cr2, you load the car figure and simply adjust the origin of the parts.
<br />
<br />
However, the rotation order flags in the phi can help to place the origins. Here are the rules:
<br />
<br />
The origin of the root actor is always centered in the root actor. The flags in the phi just define the rotation order, that is the order of the rotate channels on the root actor.
<br />
<br />
For children of the root actor, the first dimension (axis) defines the major axis of the child. The second and third dimensions define the plane where the child is attached to its parent. When Poser converts the phi, the origin and the end point of the actor are placed at the end points of the major object axis, and centered in the second and third axes.
<br />
<br />
For example, the wheels have flags "xyz". The x-axis is the major axis of the wheel, and "yz" define the plane where the wheel is attached to the car. Using this flag, Poser places the origin and end point of the wheels on the x-axis, and in the center of the y and z dimension of the wheel. This is exactly what you want. Remember that this setup can be used when your car geometry faces the front camera.
VK [ Tuesday, 20 March 2007, 11:19 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Likewise, the door actor has flags "zxy". The origin and endpoint of the door is placed at the endpoints of the door in the z-axis, and centered in the xy-plane.
<br />
<br />
Poser uses the bounding box of the geometry group to calculate the position of the origin and endpoint. The bounding box is the smallest box enclosing the entire geometry. For example, the hood actor has flags "zyx", the origin is centered in the xy-plane. This is not the hinge point of the hood. So you need to adjust the origin when you have your first .cr2.
VK [ Tuesday, 20 March 2007, 11:21 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
The phi-flags also define the rotation order of the actor, that is the order of the rotate channels in the .cr2. You can set up the rotation order in the phi or later in the .cr2. Most actors rotate about one axis (like the doors, hood, pedals, etc.). In this case, the rotation order doesn't matter, maybe you even delete the unused rotate channels from the .cr2.
<br />
<br />
The rotation order does matter when the actor uses more than one rotation axis, like the front wheels (to drive and steer). There are two important rules for the order of the rotate channels:
<br />
1. Later rotate channels carry the rotation axis of prior rotate channels.
<br />
2. The middle (second of three) rotate channel can generate "gimbal lock".
<br />
<br />
A "later channel" is a channel whose code appears later in the .cr2. The "middle" rotate channel is the channel whose code appears after the first and before the third rotate channel.
<br />
<br />
Let's see what this means for the front wheels: We choose the rotation order "xyz". X-rotate revolves the driving wheel. Y-rotate turns the wheel when you are steering. Z-rotate is unused. When you drive and steer, you set both rotations, that is
<br />
x-rotate (drive)
<br />
y-rotate (steer).
<br />
<br />
The subsequent steer channel carries the rotation axis of the prior drive channel. When you steer the wheel, the drive rotation axis is carried and points to a new direction. This is what you want.
<br />
<br />
Rule 2 doesn't apply to the front wheels, since we use only 2 rotation axes.
Tormie [ Tuesday, 20 March 2007, 11:56 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobr
Thank you for your tutorials VK, they are really priceless <img src="https://www.posetteforever.com/images/smiles/notworthy.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/notworthy.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/notworthy.gif" alt="" />
ahjah [ Wednesday, 21 March 2007, 12:08 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
<img src="https://www.posetteforever.com/images/smiles/thumb.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_clap.gif" alt="" /> <img src="https://www.posetteforever.com/images/smiles/eusa_clap.gif" alt="" /> Thanks a lot, VK <img src="https://www.posetteforever.com/images/smiles/lol.gif" alt="" />
VK [ Wednesday, 21 March 2007, 12:45 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
You're welcome. <img src="https://www.posetteforever.com/images/smiles/smile.gif" alt="" />
Whazizname [ Wednesday, 21 March 2007, 09:17 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Thanks again VK.
<br />
<br />
I have a few questions:
<br />
<br />
1.) The model I've chosen loads facing away from the camera. How does this alter the tutorial you posted? (I rotated & scaled the model; but when I spawned the props, they were unscaled, and unrotated.)
<br />
<br />
2.) The model I've chosen has multiple "body" parts; should these be grouped together to form one "car body"?
<br />
<br />
3.) (This is related to #2 above.) There were 74 props spawned from the model; some parts need to "work" together.(Tires, wheels, brake rotors, brake calipers,...)Do I need to group the parts that work together before I spawn the props?
<br />
<br />
4.) Are the default OBJ export options ok for this?
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
Whazizname [ Wednesday, 21 March 2007, 11:15 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
@ VK;
<br />
Please ignore questions 2 & 3. I used the group editor to combine the parts that work together before spawning props.
<br />
<br />
I have one additional question though: How do I prevent the brake calipers from rotating as the wheels, rotors & tires roll?
<br />
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
VK [ Wednesday, 21 March 2007, 12:29 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Answer 1:
<br />
When the car faces the back camera, the procedure is exactly the same. You can use the same phi setup. For example, the major axis of the wheels is still the x-axis, and the flags in the phi are
<br />
2 wheelgroup xyz
<br />
<br />
You need different phi-flags when the car is oriented on the x-axis (facing the right or left camera).
<br />
<br />
<br />
Answer 4:
<br />
You choose special export options. Uncheck all options, check only "Include body part names in polygon groups".
Posy [ Wednesday, 21 March 2007, 12:29 PM ]
Post subject:
What was the question ?
VK [ Wednesday, 21 March 2007, 12:31 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Answer 5:
<br />
You usually don't need a separate actor (group) for the brake calipers, since the calipers won't move in the car figure. Therefore, the calipers are part of the carbody, and the wheels are a separate actor.
<br />
<br />
If your car object has separate caliper groups, include the caliper geometries into the carbody group, and delete the caliper groups:
<br />
1. Open Group Editor.
<br />
2. Select the carbody group in the Group Editor.
<br />
3. Click "Include Group" and select a caliper group.
<br />
4. Repeat for all caliper groups.
<br />
5. Select a caliper group in the Group Editor. Click "Delete Group". Repeat for all caliper groups.
<br />
<br />
Caution: Don't delete the wrong group by mistake. And don't forget to delete the caliper groups, otherwise you have two groups including the same geometry. Before you spawn the props, check "Show Multigrouped Faces" in the Group Editor. Poser highlights all faces which are members of more than one group. When you spawn props from an object with multigrouped faces, you get a duplicate of the same geometry. For example, the caliper geometry is included in the carbody part and in the caliper part.
<br />
<br />
If your car has a moveable suspension, you group the caliper geometry with the part where the caliper is attached. Of course, the geometry of the suspension should be mechanically consistent. This means, there must be some geometry where the caliper is attached (usually the housing of the bearing).
<br />
<br />
When you have different parts which should roll with the wheel, you choose a common parent for all rotating parts. For example, you have an actor "axleFL". When you rotate the wheel, you set exactly one rotate channel of actor "axleFL". All actors which should follow the rotation are children of actor "axleFL". The hierarchy could look like this:
<br />
2 axleFL
<br />
3 brakerotorFL
<br />
3 rimFL
<br />
4 spinnerFL
<br />
4 tireFL
<br />
<br />
Now when you rotate "axleFL" all children follow the rotation, that is the brake rotor and the
<br />
rim and the children of the rim.
<br />
<br />
Usually you don't need a separate tire actor, unless you want to move the tire away from the rim in your car figure. Therefore, you group the rim and the tire and make a single actor "wheel".
Whazizname [ Wednesday, 21 March 2007, 01:27 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
The car I've chosen doesn't have a suspension, or axle group.
<br />
<br />
The way I understand it is: the front rotors, and calipers need to steer with wheels & tires; and the rotors need to roll (x- rotate?) with wheels & tires.
<br />
<br />
So, in this situation, what would you suggest to prevent the front calipers from rolling with the wheel/tire/rotor group?
<br />
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
Whazizname [ Wednesday, 21 March 2007, 01:59 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
I thought I should post this image for P5 or newer users following this thread.
<br />
<br />
{I left the roof panels in seperate groups because I wanted to be able to make them invisible when desired. I left the spoiler a seperate group; because it's height is adjusted as the vehicle increases speed. I left the engine part in their original groups; because I was unsure of the detail accuracy, and may want to change them in the future.)
<br />
<br />
Question 6:
<br />
Is it nessesary to put something in the phi file to change the spoiler height; or is it ok to just use the y-trans dial?
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />
VK [ Wednesday, 21 March 2007, 05:09 PM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
You're right. You need two separate actors to steer and drive.
<br />
<br />
You could try the following rig for the front wheel:
<br />
<br />
2 caliper
<br />
3 brakerotor
<br />
4 wheel
<br />
<br />
Use the y-rotate on parent "caliper" to steer. Use the x-rotate on child "brakerotor" to drive. When you steer, the caliper and its children follow the rotation. When you drive, the caliper is fixed. The brakerotor rotates and its child "wheel" follows the rotation (see image).
<br />
<br />
Answer 6:
<br />
No need to modify the phi. You can use the y-tran dial on the spoiler actor.
<br />
<br />
Poser includes translate channels for each actor in the new cr2, but the translate dials are by default hidden (except for the dials on the root actor). When you want to use translate dials in a child actor, you have to open the cr2 in a text editor and edit the "hidden" line in each translate channel you want to access in the dials palette. "hidden 0" display a dial for the channel, "hidden 1" doesn't.
<br />
<br />
BTW, your car looks great.
Whazizname [ Thursday, 22 March 2007, 02:07 AM ]
Post subject: Re: Cars With Posable Pedals, Steering Wheel - Like The Cobra
Thanks VK!
<br />
<img src="https://www.posetteforever.com/images/smiles/smile.gif" alt="" />
<br />
<br />
That is a clever solution to my rotor problem.
<br />
<br />
I might have more questions about the joints. I now have the bones in place.; but I am not having the expected results when adjusting the position.
<br />
<br />
But; now I need sleep.
<br />
<br />
Thanks again.
<br />
<br />
<img src="https://www.posetteforever.com/images/smiles/happy8.gif" alt="" />