Home   Help Search Login Register  

Author Topic: Geometry LOD max dimension  (Read 6502 times)

0 Members and 2 Guests are viewing this topic.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Geometry LOD max dimension
« Reply #15 on: 29 Jan 2003, 20:30:16 »
looks fine, crow  :D whadda'ya mean the geometry isn't working?

the quick view I took didn't give me any prob's  :)


neat

and to AG: will grab the update & check it out asap, matey  :-* thx for your work, both.


=============================

Right, smithy!  :D I checked out the new version - the crane is GREAT  8)
At this very moment I'm fiddling with a way to get the crane to TURN --- with a turn sound  :o ;D
However, this won't be possible without you making a selected section in the crane's p3d file.

[update on this idea:]
Maybe, if the crane was build & defined upon a turret or alike, and the cpp contained a weapon setting to "enableAttack=false" etc.  :) ...the weapon could be a horn sound  :o ;D

also, I tried to add a crane_engine sound, just a background effect. works like a charm!  8)

I suggest you contact skaircow up there & talk to him about the animation selections in O2 and cpp's  :-*

The crane's ladder also works great now  :) so its a good improvement.

Still need a few things, like the helipad; I like that you removed the "bump" section but as
the choppers still bounce when parked on a H block, you need to do some more tweaks.
It is possible, should be, I mean it works fine on most of your city office towers!  ??? :)


Keep it up, I'll get back 2 you, mate  ;)


« Last Edit: 30 Jan 2003, 16:10:20 by Tomb »

Skaircro

  • Guest
Re:Geometry LOD max dimension
« Reply #16 on: 30 Jan 2003, 19:49:25 »
Tomb, the geometry probs are as follows,

1)You can walk through the walls and doors.
2)You can shoot through the walls. Doors seem to stop bullets though.
3)The jeep crashes into it but the apc drives through it and destroys it. This is possibly to do with the cfgVehicle type used.

It still needs a bit of work, but it looks ok.  ;D
Feel free to tinker with it if you want.  ;)

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Geometry LOD max dimension
« Reply #17 on: 30 Jan 2003, 22:58:23 »
 ::) well, my lil' man is bigger then my modelling skills for sure  ;D but at least I know some cpp stuff.
ans yea, I noticed that the AI can kill me in spite of the container  :P ::) ;D


 :D why don't you ask AG to add it to his pack? your name & all that can just be thrown into the readMe file, then we will have a better "port" addons coming up! And AG can probably solve most of the geometry issues  :) (right, agent? ) while HE in return will get an exellent animation tutoril via your crate!  :-* 8)

Setting up coorporative projects.... ain't no thing ofpec can't handle!  8) ( ;D )


Nah, really - its great with some harbour stuff. we needed that!! I hope something interesting will come out of that crane, coz my son is really hot for it and wanna see it turn, maybe even be able to turn it himself  :o :D

nice thought - and very possible indeed!  :)

thx for you work, scaircrow!  :-*


Kaliyuga

  • Guest
Re:Geometry LOD max dimension
« Reply #18 on: 30 Jan 2003, 23:58:24 »
 Here's a little tidbit for ya Tomby, since yer boy wants to see that there crane turn around some.... ;D


  here's what you'll need to do in O2  


select everything that will be turning (In other words the entire top of the crane) and name this selection as:

arm

in your resolution LOD  

now.. go to the memory LOD

and add two points  representing the axis that the "arm" will turn on ....  

for the crane you'll want to create one point at the bottom of
crane and then copy/paste it and move along the Y axis only , so  It will be nice and straight ... ;)

now that selection should be named as :

osa_arm

in yer memory LOD...

OK.. almost finished.....  


yeah.. it's that easy ;)


now.. onto the config.cpp part


you'll need to add this bit to your config

-----------------------------------------------------------------------

                Scope=2;
      accuracy=1000;
      displayName="Cartel Gunboat";
           animated=1;
      
    class Animations
      {
         class arm
         {
            type="rotation";
            animPeriod=3;
            selection="arm";
            axis="osa_arm";
            angle0=0;
            angle1=-1.6;
         };
      };
      class UserActions
      {
         class OpenArm1
         {
            displayName="Open Door";
            position="osa_arm";
            radius=2.5;
            condition="this animationPhase ""arm"" < 0.75";
            statement="this animate [""arm"", 1]";
         };
         class CloseArm1
         {
            displayName="Close Door";
            position="osa_arm";
            radius=2.5;
            condition="this animationPhase ""arm"" >= 0.75";
            statement="this animate [""arm"", 0]";
         };
      };

---------------------------------------------------------------------------------

 O.K.  

 I added in the first bit to show that you'll need to add the

animated=1 ;

to your config as well as the Class Animations and Class User Actions data below it....


 Now... I these are the values that we worked out to simulate a door swinging open about 90 degrees or so , but the values can of course be altered to suit the crane...



AnimPeriod:  I believe this is how fast the animation is carried out, but I could be wrong.....

   I haven't needed to alter any of the values yet for any of my projects, cause they've all pretty much used this animation data here, but I'm sure you could figure out how to make it rotate a little farther than 90 degrees


the one thing I do know is that editing this data:

radius=xx;

is the radius at which the action will appear on the action menu for the player....

 good luck, and if you need any help with it.. send me an IM...

:cheers:

Kaliyuga


AG_Smith

  • Guest
Re:Geometry LOD max dimension
« Reply #19 on: 31 Jan 2003, 13:03:47 »
Ok.........
Thx for your investigation and suggestions, guys. Here's what I think:
the best way would be making crane to have 'turret' and enabling a gunner position... How? Have no idea right now. Put any suggestion below. Or maybe someone of you wolud like to do this himself, I can post him a non-binarized .p3d file?
As for the crate (with animted doors), I'll add it at closest update, no prob.
I'm little bit short of time now, so that's all so far.
 8)

Skaircro

  • Guest
Re:Geometry LOD max dimension
« Reply #20 on: 31 Jan 2003, 14:10:09 »
The animation method for the crane that Kaliyuga mentioned would work ok.

If it is possible to configure it as a turret it would give it a bit more flexibility of movement and you wouldnt have to use the action menu commands to move it.
Possibly if you configure the whole crane as something like a bmp/m113 or something similar and the top of the crane as the turret.
It would take a heavily modified config file so that it didnt think it was a moveable vehicle with weapons, but I imagine it would work.

I'm quite busy making my own addon at the moment, but I'll see what I can come up with in a config and I'll let you know if it looks possible.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Geometry LOD max dimension
« Reply #21 on: 31 Jan 2003, 18:45:58 »
 :D Kali, min ven - tak!  :-*

I remember when I got one of these addon ships out there, the front turret of the boat also gave me the TURRET (the one from the boat) as a seperate object in some other vehicleClass in the editor  ::) ;D

Prolly a bug - but nevermind, coz it could very well be the basics for realizing THIS crane idea!!!
I can't recall which boat addon it was, but it was one of those coast guard types avaliable. (not so many of them, so it should be possible to find it soon)  :)

Now, if this turret was put upon an APC with no movement capability, no driver or commander, (maybe like the M2mg static?) it could work.

The APC config should contain these parts :


maxSpeed=0;
hasDriver=0;
hasCommander=0;
fuelCapacity=0;
SoundEngine (set to none - as there's no fuel anyway!)
(but we could insert a custom 'crane' sound as turret-turn sound.)
weapons[]={"factory-style siren"}; (build upon the apc's own weapons with no attacking possibility off course)

Can't see a big problem in this idea (though a few hours will be spent!!)  :o ;D

Whadda'ya say, kali - doesn't a turret seems like a better idea than the animations?  :D

(*instantly starts to think about another way to use the anims... like making it possible to actually lift crates!*)

With invisible sections as part of the animated sections, wouldn't it be possible to simulate the wire & hook going up & down?! I think so.

But thats out in the future for now! So far, I'd stick to testing this turret idea...  8)
guess one should just build the model upon an already existing BIS apc vehicle... or the M2mg static





« Last Edit: 31 Jan 2003, 18:46:47 by Tomb »

Kaliyuga

  • Guest
Re:Geometry LOD max dimension
« Reply #22 on: 31 Jan 2003, 19:40:06 »
 LOL.. yeah it does sound better Tomby.... as long as those aren't my hours that get spent figgering out the turret method....
::)
 naw, seriously..... it shouldn't be too hard to get working... ;D

 you just need to make the proper selections in O2 to define it as a gun......  and then give it an axis on which to rotate

You'll need this in your cfg models class :

class CfgModels
{
   class Default{};
   class Ship : Default{};
   class ECL_Fboat: Ship{};
   class weapon : Default{};
   class TurretBase: weapon{};

};


class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land : AllVehicles {};
   class Ship: AllVehicles{};
   class BigShip: Ship{};
   
   class ECboat: BigShip
   {
     
      displayName="ECLboat";
      picture="\ECLboat\boat.paa";
                accuracy=0.95;
      fuelCapacity=700;
      model="\ECLboat\ECLboat.p3d";
      vehicleClass="Armored";
      scope=public;
      hasDriver=false;
      hasGunner=true;
      hasCommander=false;
      driverIsCommander=false;
      getInRadius=30;      
                gunnerCanSee = CanSeeAll;
                gunnerAction="ManActJeepCoDriver";
      gunnerInAction="ManActJeepCoDriver";
      gunnerOpticsModel="optika_zsu_gunner";
=============================================

Now here's the real juicy stuff you need to make it work ;)

class TurretBase
      {
         gunAxis="osa hlavne";
         turretAxis="osa veze";
         gunBeg="usti hlavne";
         gunEnd="konec hlavne";
         soundServo[]={"Vehicles\gun_elevate",0.001000,1.000000};
         minElev=-15;
         maxElev=90;
         minTurn=-360;
         maxTurn=360;
         body="OtocVez";
         gun="OtocHlaven";
      };





« Last Edit: 31 Jan 2003, 19:41:15 by Kaliyuga »

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Geometry LOD max dimension
« Reply #23 on: 31 Jan 2003, 21:06:35 »

 :o No elevations for Gods sake!  :noo:

=========================================

class TurretBase
{
        gunAxis="osa hlavne";
        turretAxis="osa veze";
        gunBeg="usti hlavne";
        gunEnd="konec hlavne";
        soundServo[]={"craneAddon\electronicArmOrAlike",1,1};  8)
        minElev=0;
        maxElev=0;
        minTurn=-20;
        maxTurn=20;
        body="OtocVez";
        gun="OtocHlaven";
};


So the "legs" of the crane is the APC, and the control house + craneArm is the "gun" ?!



Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Geometry LOD max dimension
« Reply #24 on: 31 Jan 2003, 21:07:53 »
yanno, what if the turnCoef was set to NULL - couldn't one make the APC move - but ONLY forth & back?!
...like on those tracks?!!

the maxSpeed could be set to something VERY low... simulating a heavy crane moving...  :D
« Last Edit: 31 Jan 2003, 21:08:44 by Tomb »

Kaliyuga

  • Guest
Re:Geometry LOD max dimension
« Reply #25 on: 31 Jan 2003, 21:47:48 »
 Good idea about the turning thing.... haven't tried it myself yet though....

 about the "gun" and "body"  here is a little more detailed info...

check out this page...


http://ofp.gamezone.cz/_hosted/brsseb/tutorials/lesson5/lesson5_c.htm

and the one after it.... and it will tell you everything you need to know about making that crane into a turret....  

:cheers:

Skaircro

  • Guest
Re:Geometry LOD max dimension
« Reply #26 on: 01 Feb 2003, 16:40:05 »
I had a bit of a play with a potential config file and I think I might be able to do it.
Here is a few things I was thinking.

Use the tank config instead of apc.
Use Commander=true and Gunner=false, that way when you get in, you are the commander not the gunner which makes more sence for a crane.
Use the commander turret - "class ComTurret"
Use the elevations for the turret to raise and lower the crane arm by a small amount.

I spent quite a few hours trying to get a turret working on my plane until I realised that it wasnt possible. :'(
I think I learnt enough from that experience to possibly be able to help out here, and I dont think it will be as difficult as I first imagined. But then I have been wrong before!  ;)
So if you can send through the crane model I can see how I go.

In relation to the turnCoef and the only move back and forth on the tracks, I'm not too sure about that. I was thinking that if the crane took a solid hit from the side it could turn it slightly, so that it is no longer 'on the tracks', and end up driving of the side of the dock!

AG_Smith

  • Guest
Re:Geometry LOD max dimension
« Reply #27 on: 05 Feb 2003, 13:29:33 »
Hi,
 Sorry for not replying for some time. I'm going to a vacation now, so I won't be at the forums for about a week. But keep posting, I asure you I'll get back to this topic and eventually make the crane work. ;)
Good work guys, thank you. ;D

AG_Smith

  • Guest
Re:Geometry LOD max dimension
« Reply #28 on: 13 Feb 2003, 12:29:41 »
Little more help needed here:
Skaircrow made the crane turning and now I want to add the hook animation. I've been wondering if there is any other animation method than rotation, so we could simulatre the wire and hook going up and down. I think this cpp line should be modified:
Code: [Select]
class Animations
      {
         class arm
         {
            type="rotation"; <<<<<<<<<<< HERE
            animPeriod=3;
            selection="arm";
            axis="osa_arm";
            angle0=0;
            angle1=-1.6;
         };
      };
.
Has anyone seen this line saying something other than "rotation"? ???
Agent_Smith

BTW. I 've fixed the crate with animated doors, but I'll upload everything once the crane will be ready.

Skaircro

  • Guest
Re:Geometry LOD max dimension
« Reply #29 on: 17 Feb 2003, 14:20:50 »
I think rotation is the only one.
But I noticed on that latest screenshot of the harrier from falklands mod that the canopy seems to slide rearwards.
And I read something on the official forums about placing the rotation point quite some distance away (100-150m) which sort-of simulates a sliding movement instead of rotating.
Dont know if it would work here though.  :-\