PDA

View Full Version : How to define attributes in o2



Gen.Carnage
Apr 28 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.

Apr 28 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
Apr 28 2002, 11:48
May I ask... is Wiev Geometry what AI use to detect vehicle behind other objects?

Apr 28 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.

Gen.Carnage
Apr 28 2002, 12:46
AHHHH thanks a lot, now i can get started&#33; http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

Kegetys
Apr 28 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 http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

VXR
Apr 28 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?

FlipeR
Apr 28 2002, 14:39
Araon: I still dont know what the Fire Geometry LOD do&#33;?&#33;

FlipeR

WKK Gimbal
Apr 28 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
Apr 28 2002, 15:17
thnx Gimbal

Gen.Carnage
Apr 28 2002, 17:29
I&#39;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&#39;m thinking there must be something wrong with the definitions.

FlipeR
Apr 28 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"&#33; 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"&#33;

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

Hope it helped&#33;


FlipeR

Gen.Carnage
Apr 28 2002, 20:11
that helped allright&#33; 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&#39;ve use stuffpbo and PBOtool to put the texture.pac in the pbo (i&#39;ve put all textures for all surfaces of the tank into one tga file 1024x1024 res).
Been working on this ALL day, i&#39;m completely at the end of my rope, NOTHING seems to work, i&#39;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
Apr 28 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&#39;ve use stuffpbo and PBOtool to put the texture.pac in the pbo (i&#39;ve put all textures for all surfaces of the tank into one tga file 1024x1024 res).
[/QUOTE]<span id='postcolor'>

OFP absolutely doesn&#39;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 http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

Konyak

FlipeR
Apr 29 2002, 10:19
Right&#33; Texture size must be numbers of power square of 2&#33; 16,32,64,.... up to 512x512&#33; Thats the limit&#33;


FlipeR

Gen.Carnage
Apr 29 2002, 11:21
ok, i&#39;ve resized the bitmap to 512x512 and still no go&#33;

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

WKK Gimbal
Apr 29 2002, 12:19
no - max texture size is 256x256

Gen.Carnage
Apr 29 2002, 13:50
MAN this is really starting to eat at me&#33;

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&#33;
i&#39;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 ..&#92;data&#92; folder, tried doing it both......... NOTHING WORKS&#33;&#33;&#33;
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 http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif that would be so cruel&#33;

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

Suma
Apr 29 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)?

Gen.Carnage
Apr 29 2002, 14:13
the textures are automatically converted from the .max location to the f:&#92;data folder  i dont want them there, but thats what it does.
So i copy the converted pac files to the d:&#92;..&#92;operationflashpoint&#92;addons&#92;challenger2&#92;data folder

bulldozer is placed in f:&#92;

the addons folder is on d:&#92;..&#92;..&#92;operationflashpoint&#92;addons

oxygen sits in d:&#92;oxygen
the addon is placed in the folder d:&#92;..&#92;..&#92;operationflashpoint&#92;addons&#92;challenger2
the pac files in the d:&#92;..&#92;operationflashpoint&#92;addons&#92;challenger2&#92;data folder

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

so as far as i know, the relative position is the &#92;data&#92; folder from the main addon folder

under face properties it says data&#92;camo.pac for a certain part of the vehicle

Suma
Apr 29 2002, 14:53
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">the textures are automatically converted from the .max location to the f:&#92;data folder i dont want them there, but thats what it does.
[/QUOTE]<span id='postcolor'>

This is where Buldozer finds them. You can change this default location by changing objektiv setting - when working on challenger2 set your O2 so that is converts textures into f:&#92;Chal2 folder. (Keep the name short because of texture name lenght limitation).

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">so as far as i know, the relative position is the &#92;data&#92; folder from the main addon folder

under face properties it says data&#92;camo.pac for a certain part of the vehicle[/QUOTE]<span id='postcolor'>

I think I can see now what the problem is. Program tries to load your texture from data.pbo, but it cannot find it there (no surprise).

I suggest you a little bit different directory structure. Place both your model and textures into folder f:&#92;chal2, do not create any data folder inside of it. Make sure your textures are referenced as chal2 (like chal2&#92;camo.pac). This way program will know it should load the texture from Chal2.pbo file.

Gen.Carnage
Apr 29 2002, 15:26
ok, i&#39;ll try that and post the result.

Thank you very much for the help.

WKK Gimbal
Apr 29 2002, 16:13
Will we get to beta test the challenger2? See, I&#39;ve also made one, LOL and maybe I can suggest something to it... never know.

Gen.Carnage
Apr 29 2002, 16:37
CH2 ROCKS&#33;

hehe i FINALLY got the skin thing sorted out, thank to SUMA.

now i can start with the damage control and touching up the textures, since 245x256 is not enough for covering the whole tank.

Thanks Suma&#33;

FlipeR
Apr 29 2002, 18:59
245x256 http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif  You hopefully ment 256x256&#33; http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/wink.gif

Will we get it for BETA test?


FlipeR

Gen.Carnage
Apr 29 2002, 19:12
i meant 256x256 allright... http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

now i have the skins sorted, i went back to the M109A6.
The challenger will be next in line... http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif


look at the pictures:

http://dkm-mod.unitedgaming.net/czpics/1.jpg
http://dkm-mod.unitedgaming.net/czpics/2.jpg
http://dkm-mod.unitedgaming.net/czpics/3.jpg

VXR
Apr 29 2002, 19:33
2 more shots&#33;

http://dkm-mod.unitedgaming.net/czpics/4.jpg

http://dkm-mod.unitedgaming.net/czpics/5.jpg

GFX707
Apr 29 2002, 20:18
nice work http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif


are you going to let us test it....? http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif

PSC
Apr 29 2002, 20:30
*starts to sing* Nice Nice Baby, dadada dadada dadada doh...

http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/wink.gif PSC out

Gen.Carnage
Apr 29 2002, 20:32
sure... as soon as it stops bouncing around after every 155 mm shell beeing fired.. LOL

also, the tracks are not rotating yet, the shadow is absent, the LODS for the gunner, driver and commander are not done yet, it&#39;ll take time.

WKK Gimbal
Apr 29 2002, 21:31
Maybe it also could do with some sharper textures... they look a tad blurry. otherwise nice http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

Gen.Carnage
Apr 29 2002, 21:47
working on that, the original tex was1024x1024 it appears that that is too much
so i had to resize them, making it blurry

VipHeart
Apr 29 2002, 22:12
As far as I tried out to handle textures until I lost my Oxygen ( BIS: I&#39;m still waiting for new unlock codes...&#33http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/wink.gif, I found out that the game seems to handle textures above 512x512 (actually they were 1024x1024 I think). However, the textures looked quite "blury" - so I guess the programm either rendered it down or used the .pac files lower mip maps&#33;&#33;
To sum up: It seems to do not crash with bigger textures, but it doesn&#39;t use themanyway in this case&#33;

Gen.Carnage
May 1 2002, 21:04
*bump*

some important info in this thread

FlipeR
May 2 2002, 09:42
You said it bunces around after every shell fired?? I&#39;m pretty sure thats because of Paladin&#39;s mass beeing too small&#33;&#33; The real M109A6 Paladin weights 32 tons - thats 32000 kilograms&#33; Make sure you have this mass value when you select the whole model in geometry LOD&#33;


FlipeR

Rob
May 2 2002, 09:57
that would be done in the cpp file correct?

Gen.Carnage
May 2 2002, 10:38
I&#39;ve given it a total mass of 40000 kg fliper.

But anyway, i found out what caused it.
after assigning the mass, select "center all views"
the center of gravity for all lods will then be placed on 0,0,0 coords.
after doing this the bouncy paladin was history. http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif

Hope this will help others who encounter the same problem.