Jump to content

Photo
- - - - -

How to define attributes in o2


  • Please log in to reply
36 replies to this topic
Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#1

Posted 28 April 2002 - 10:55

Can anyone please explain to me what i would have to do to define a tank in O2?

I have this fully skinned model sitting in there, i toy around with the LOD's, make selection groups and stuff.

But i have NO CLUE how to :
-define where the crew gets in the vehicle
-define where the driver,gunner and commander will sit
-define how these crewmen will be when in "turn out" position.
- How to define the turret rotation axis
- How to define the gun axus
- defining the tracks
- The wheels
- the coaxial gun
- the head and tail lights.
- how to define the muzzleflash and smoke

PLEASE someone point me in the right direction, i am getting nowhere this way.
I've installed a zillion Terabyte harddisk and downloaded half the internet, but i just cannot find that info anywhere.

Guest__*
Guest__*
  • Guests

#2

Posted 28 April 2002 - 11:33

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">-define where the crew gets in the vehicle[/QUOTE]<span id='postcolor'>
In LOD "Memory" by point named "pos driver" (without quotes)

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">-define where the driver,gunner and commander will sit[/QUOTE]<span id='postcolor'>
By "Proxy" object`s. For M1A1like vehicle it will be "proxy:M1A1driver.01" for driver, "proxy:M1A1commander.01" for commander and "proxy:M1A1gunner.01" for gunner.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">- How to define the turret rotation axis[/QUOTE]<span id='postcolor'>
In LOD "Memory" by point named "OsaVeze"

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">- How to define the gun axus[/QUOTE]<span id='postcolor'>
In LOD "Memory" by point named "OsaHlavne"

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">- defining the tracks[/QUOTE]<span id='postcolor'>
In LOD "Memory" by points named "stopaLL" (track Left Left), "stopaLR" (track Left Right), "stopaRR" (track Right Right) and at last "stopa RL" (track Right Left).

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">- The wheels[/QUOTE]<span id='postcolor'>
Wheels must be named. "kolL1", "kolL2" and "kolP1", "kolP2" (L means Left and P means Right) for non "bumping" wheels (like driving wheels). Other wheels should be named "koloL1" - "koloL6" and "koloP1" - "koloP6".
note: This wheel names are just for tanks.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">- the coaxial gun[/QUOTE]<span id='postcolor'>
In LOD "Memory" by point named "kulas"

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">- the head lights.[/QUOTE]<span id='postcolor'>
In LOD "Memory" by points named "P svetlo" for Right light and "Konec P svetla" for right light course and "L svetlo" for Right light and "Konec L svetla" for left light course

WKK Gimbal
WKK Gimbal

    Sergeant Major

  • Members
  • 1880 posts

#3

Posted 28 April 2002 - 11:48

May I ask... is Wiev Geometry what AI use to detect vehicle behind other objects?

Guest__*
Guest__*
  • Guests

#4

Posted 28 April 2002 - 12:31

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">May I ask... is Wiev Geometry what AI use to detect vehicle behind other objects?[/QUOTE]<span id='postcolor'>

Yes. And objects hided behind View Geometry are not rendered. If is View Geometry not present, is used Geometry.

Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#5

Posted 28 April 2002 - 12:46

AHHHH thanks a lot, now i can get started! Posted Image

Kegetys
Kegetys

    Warrant Officer

  • Members
  • 2752 posts

#6

Posted 28 April 2002 - 12:59

I have noticed some of these group/memory names can be changed from the config.cpp, for example there is a setting like this:

class Turret
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
gunBeg="usti hlavne";
gunEnd="konec hlavne";
minElev=-4;
maxElev=20;
minTurn=-360;
maxTurn=360;
body="OtocVez";
gun="OtocHlaven";
};

So if those Czech namings confuse you you can change them to something you remember better Posted Image
Posted Image

VXR
VXR

    Second Lieutenant

  • Members
  • 4187 posts

#7

Posted 28 April 2002 - 13:19

adn what is the problem if i place the m109 in the editor and push preview and he returns to windows without a error?

what do i have to do?
Posted Image

FlipeR
FlipeR

    Staff Sergeant

  • Members
  • 227 posts

#8

Posted 28 April 2002 - 14:39

Araon: I still dont know what the Fire Geometry LOD do!?!

FlipeR

WKK Gimbal
WKK Gimbal

    Sergeant Major

  • Members
  • 1880 posts

#9

Posted 28 April 2002 - 14:59

Vixer:

You probably miss some vital lods. I tried previewing a model a couple days ago and the game crashed. When I looked in o2, it was because it only had model LODs, not geometry or memory (or anything else).

VXR
VXR

    Second Lieutenant

  • Members
  • 4187 posts

#10

Posted 28 April 2002 - 15:17

thnx Gimbal
Posted Image

Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#11

Posted 28 April 2002 - 17:29

I'm a bit confused as to what to call the rest of the geometry

- I make a named selection for the turret, how do i name it?
- Is the body of the tank called "OtocVez"?

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">In LOD "Memory" by points named "stopaLL" (track Left Left), "stopaLR" (track Left Right), "stopaRR" (track Right Right) and at last "stopa RL" (track Right Left).[/QUOTE]<span id='postcolor'>
- Could you please explain more detailed what you exactly mean with the tracks? what points are left left, and left right?


</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote
-define where the crew gets in the vehicle

In LOD "Memory" by point named "pos driver" (without quotes)
[/QUOTE]<span id='postcolor'>

By "point" do you mean a point entity or something like that?
Or do i put in a box and give it a selection name "pos driver"?

This must sound really stupid, but since i cant get the model to work in ofp (it keeps crashing to desktop) i'm thinking there must be something wrong with the definitions.

FlipeR
FlipeR

    Staff Sergeant

  • Members
  • 227 posts

#12

Posted 28 April 2002 - 19:17

If you want to define the point where the crew gets in the vehicle, you make a VERTEX (simply press "Insert" key on the keyboard) and name his selection "pos driver"! If you want the vehicle to be accessible from both sides, you make TWO vertices (one on each side) with the same selection name - "pos driver"!

For passengers (in UH60 for instance) its the same procedure but different selection name - "pos cargo"!

Hope it helped!


FlipeR

Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#13

Posted 28 April 2002 - 20:11

that helped allright! Thanks a lot

Maybe you have an idea as to why this model doesnt get skinned in ofp when it does appear skinned in bulldozer?

i've use stuffpbo and PBOtool to put the texture.pac in the pbo (i've put all textures for all surfaces of the tank into one tga file 1024x1024 res).
Been working on this ALL day, i'm completely at the end of my rope, NOTHING seems to work, i've tried all sorts of paths, even did some retexturing etc, all it gives me is full white tank in ofp.

Any ideas?

Konyak-2
Konyak-2

    Staff Sergeant

  • Members
  • 206 posts

#14

Posted 28 April 2002 - 22:53

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">i've use stuffpbo and PBOtool to put the texture.pac in the pbo (i've put all textures for all surfaces of the tank into one tga file 1024x1024 res).
[/QUOTE]<span id='postcolor'>

OFP absolutely doesn't support texture files that are 1024x1024. 512 max. Resistance upgrade will make 1024 textures possible. Keep it in mind when you make your textures Posted Image

Konyak

FlipeR
FlipeR

    Staff Sergeant

  • Members
  • 227 posts

#15

Posted 29 April 2002 - 10:19

Right! Texture size must be numbers of power square of 2! 16,32,64,.... up to 512x512! Thats the limit!


FlipeR

Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#16

Posted 29 April 2002 - 11:21

ok, i've resized the bitmap to 512x512 and still no go!

in bulldozer it appears correctly, and bulldozer uses the ofp engine (?)

WKK Gimbal
WKK Gimbal

    Sergeant Major

  • Members
  • 1880 posts

#17

Posted 29 April 2002 - 12:19

no - max texture size is 256x256

Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#18

Posted 29 April 2002 - 13:50

MAN this is really starting to eat at me!

in pure frustration i started on another unskinned tank, so i thought, better use small textures and plain box  and plane mappings.
so i do this all and guess what?

a completely white tank in ofp!
i've placed the pac files along with the p3d and the config in a folder with the right name, tried putting the pac in the ..\data\ folder, tried doing it both......... NOTHING WORKS!!!
the largest texture i used on this tank is 128x128

and AGAIN, in the viewer its ok, but after stuffing it into a pbo its all white..

Dont tell me the textures have to have specific names or something Posted Image that would be so cruel!

i think there HAS to be some sort of wrong setting in the p3d .





Suma
Suma

    BI Developer

  • 3707 posts

#19

Posted 29 April 2002 - 14:03

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">and AGAIN, in the viewer its ok, but after stuffing it into a pbo its all white..[/QUOTE]<span id='postcolor'>

Where are your textures placed when viewing in Buldozer? Where are they placed when in pbo file (what relative paths)? What paths are used to reference them from model file (you can see this is face properties)?
Ondrej Spanel, BIS Lead Programmer

Thread Starter
Gen.Carnage
Gen.Carnage

    Gunnery Sergeant

  • Members
  • 448 posts

#20

Posted 29 April 2002 - 14:13

the textures are automatically converted from the .max location to the f:\data folder  i dont want them there, but thats what it does.
So i copy the converted pac files to the d:\..\operationflashpoint\addons\challenger2\data folder

bulldozer is placed in f:\

the addons folder is on d:\..\..\operationflashpoint\addons

oxygen sits in d:\oxygen
the addon is placed in the folder d:\..\..\operationflashpoint\addons\challenger2
the pac files in the d:\..\operationflashpoint\addons\challenger2\data folder

In ox, with the texture display on the left enabled it states;
data\tracks.pac, data\wheel1.pac, data\camo.pac etc etc.

so as far as i know, the relative position is the \data\ folder from the main addon folder

under face properties it says data\camo.pac for a certain part of the vehicle