JK and MotS Editing >> Modeling >> 2 sided grass 3dos     (Moderator: Admins) Previous Topic | Next Topic
Page 1 of 1
 Author 
 Post 
Post 06-Dec-2006 00:03        

So how does one go about making a 3do that is simply one double sided polygon? I figure that would work better than the extremely thin 6 sided prisms i have now.
Post 06-Dec-2006 02:23        

This is how I do that assuming its done with Jed:

Make your shape in 3d (using sectors) and delete the sides of the object you don't want until you are left with the surface you want. You can delete a surface with "alt + Del".

To make it a double-sided surface you can open the 3do and change the face flag to
0x0001. In Jed I don't think the doublesidedness appears in the preview window, but you can hit "alt + i" to let you flip flop which way the surface is facing.

original face info in 3do file:


FACES 6

0: 0 0x0 4 3 1 0 4 3, 0 2, 1 1, 2 0, 3
1: 0 0x0 4 3 1 0 4 7, 4 6, 5 5, 6 4, 7
2: 0 0x0 4 3 1 0 4 7, 8 4, 9 3, 10 0, 11
3: 0 0x0 4 3 1 0 4 6, 12 7, 13 0, 14 1, 15
4: 0 0x0 4 3 1 0 4 5, 16 6, 17 1, 18 2, 19
5: 0 0x0 4 3 1 0 4 4, 20 5, 21 2, 22 3, 23



edited face info in 3do file to make each face double-sided:


FACES 6

0: 0 0x0001 4 3 1 0 4 3, 0 2, 1 1, 2 0, 3
1: 0 0x0001 4 3 1 0 4 7, 4 6, 5 5, 6 4, 7
2: 0 0x0001 4 3 1 0 4 7, 8 4, 9 3, 10 0, 11
3: 0 0x0001 4 3 1 0 4 6, 12 7, 13 0, 14 1, 15
4: 0 0x0001 4 3 1 0 4 5, 16 6, 17 1, 18 2, 19
5: 0 0x0001 4 3 1 0 4 4, 20 5, 21 2, 22 3, 23




There is a build surface command "alt + b" listed as a keyboard command but I have never figured out how this one works.
Post 06-Dec-2006 05:14        

To build a surface with Ctrl+B, multiselect the vertices one at a time in the order you would traverse the edges of the surface.
Sometimes (depends on which direction you select the vertices) you'll create the surface "inside out" ... that is, the "top" side (on a one-sided surface, the side that is rendered) of the surface is facing into the sector, instead of out of. No problem, though; just hit ctrl+I to invert the surface.

For example, to build a square surface with the four vertices shown below, you want to multiselect the vertices in one of the following orders:
1,2,3,4
2,3,4,1
...
4,3,2,1
3,2,1,4
...


  1 . . .2
  '      '
  '      '
  '      '
  '      '
  4 . . .3


You should not build a surface when you have selected vertices in some other fashion, such as 1,2,4,3; this particular selection will give you a surface that looks like this:

  1.____.2
    \;;/ 
     \/   
     /\   
    /  \ 
  4/____\3


Play around with it a little bit and you'll get it down really quick
Post 06-Dec-2006 06:13        

So thats how you use the build face command.

Alt + b with vertices selected.
Alt + I for inverse.

If that works out deleting surfaces is probably not advisable instead. Jed won't let you undo if you accidently delete the wrong surface. Also it can be tricky to delete the extra vertices from the deleted surfaces if it is a complex object. This works though: Multi-select all the surfaces, switch to vertice mode, and select everything again. then press Delete. That should select only the stray vertices and delete them. Although, in rare circumstances, it can create errors.
ZeqMacaw
Site Admin
Post 06-Dec-2006 15:45        

In ZED, you don't need to open the 3do file directly to change the face flags. Just modify the face flags as you normally would; the option for "Two-sided" and all other checkbox options actually save to the 3do file correctly.

Post 08-Dec-2006 18:06        

Ah, thanks guys.
Post 07-Mar-2008 16:46        

I would actually recommend not deleting the side surfaces, but instead flag them as +GEO 0 or give them a transparent texture. Then just reduce the distance between the front at back of the grass 3do box, but note that this distance should be greater then 0. The reason for this is due to how dynamic lights react with non-true 3D objects. In addition to this, I would add the "EXTRA LIGHT" value and give it, say, 0.5. This will keep shadows on the opposite side of the grass from the light source from being too dark (considering that grass allows a certain degree of luminisity to pass),
*** Post commands are unavailable for guests. ***