Jump to content


Photo

RENDERVOL / POLY and VOLCOLISION / POLY


  • Please log in to reply
4 replies to this topic

#1 xelono

xelono
  • Members
  • 46 posts
  • Location:Santiago, Chile
  • Projects:Commandos: Sniper Elite (BCD mod)
  •  http://xelonostudios.wixsite.com/commandosmods

Posted 09 February 2017 - 11:23 PM

Hello
 
Anyone has any idea how to add the correct POLY for the sprite I need.
 

 

      ]

      .GRAPH [ 
        .ANIM XELO_LANDIBOAT1
        .TILES 2
        .RENDERVOL [ 
          POLY
          [ 
            .H 40
            .VERT [ [ 250 0 ] [ 210 70 ] [ -60 45 ] [ -60 -45 ] [ 210 -70 ] ]
          ]
        ]
      ]
      .VOLCOLISION [ 
        POLY
        [ 
          .H 60
          .VERT [ [ 220 40 ] [ -60 40 ] [ -60 -40 ] [ 220 -40 ] ]
        ]
      ]

 

 
Apparently these data configure the limit of the sprite so that commands, Germans, animals, etc., when colliding with the object these stop and do not pass over or under.
 
How to configure this data if I want to change the sprite by another vehicle, for example the boat (LANCHON)
 
I leave an example here:
 
polys0.jpg polys1.jpg

 

 

 
 

Edited by xelono, 09 February 2017 - 11:27 PM.


#2 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 10 February 2017 - 06:05 AM

The coordinates in the VERT block are relative to the center of the boat in neutral position. In Commandos an object is in neutral position when it's facing right, the center of an object is defined in the ANM file.

 

For example: In LANCHON2.ANM, the line SPRITE "LANB0006.RLE",-43,-116,0 means that the center of sprite LANDB0006 is at 43,116 on the actual image.

 

.VERT [ [ 250 0 ] [ 210 70 ] [ -60 45 ] [ -60 -45 ] [ 210 -70 ] ]

Screenshot (133).png

 

.VERT [ [ 220 40 ] [ -60 40 ] [ -60 -40 ] [ 220 -40 ] ]

Screenshot (134).png

 

And like the sectors of the navigation mesh, also the RENDERVOL and VOLCOLISION polygons have to be convex!



#3 xelono

xelono
  • Members
  • 46 posts
  • Location:Santiago, Chile
  • Projects:Commandos: Sniper Elite (BCD mod)
  •  http://xelonostudios.wixsite.com/commandosmods

Posted 10 February 2017 - 02:40 PM

The coordinates in the VERT block are relative to the center of the boat in neutral position. In Commandos an object is in neutral position when it's facing right, the center of an object is defined in the ANM file.

 

For example: In LANCHON2.ANM, the line SPRITE "LANB0006.RLE",-43,-116,0 means that the center of sprite LANDB0006 is at 43,116 on the actual image.

 

.VERT [ [ 250 0 ] [ 210 70 ] [ -60 45 ] [ -60 -45 ] [ 210 -70 ] ]

attachicon.gifScreenshot (133).png

 

.VERT [ [ 220 40 ] [ -60 40 ] [ -60 -40 ] [ 220 -40 ] ]

attachicon.gifScreenshot (134).png

 

And like the sectors of the navigation mesh, also the RENDERVOL and VOLCOLISION polygons have to be convex!

 

Thank you very much herbert, you are really fantastic!! :grin:  It's all very clear now for me...



#4 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 10 February 2017 - 09:28 PM

For example: In LANCHON2.ANM, the line SPRITE "LANB0006.RLE",-43,-116,0 means that the center of sprite LANDB0006 is at 43,116 on the actual image.
 
.VERT [ [ 250 0 ] [ 210 70 ] [ -60 45 ] [ -60 -45 ] [ 210 -70 ] ]
attachicon.gifScreenshot (133).png

How did you showed all those sprite bounds lines? which version are you using?



#5 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 11 February 2017 - 10:21 AM

How did you showed all those sprite bounds lines? which version are you using?

I used the unofficial Debug EXE, you can download it here:

https://forums.revor...ints/?p=1050002

(actually it's the EXE of the Chinese version of the game, I only changed the icon)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users