Wed, Dec 4, 7:43 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 04 4:13 pm)



Subject: P7's 50 caliber Browning machine gun


TheOwl ( ) posted Sat, 13 September 2008 at 1:07 PM · edited Tue, 19 November 2024 at 11:46 PM

file_413868.jpg

I just tried out Vanishing Point's Browning figure that comes out with P7 and I was pretty impressed for you could put a number on the "fire" dial and it will shoot bullets, eject spent catridges and move the belt feed.

Makes me wonder how it was built to do that. Anyone out there could explain how they make such effect?

The only clue I found is the belt, bullet and catridge is part of a "Fire Morph" but it is not visible in the body part drop down list unless I put my cursor over them.

Passion is anger and love combined. So if it looks angry, give it some love!


Winterclaw ( ) posted Sat, 13 September 2008 at 1:32 PM

My theory:

I heard that there was a lot of scripting involved in order to get a wheel to turn and have a door move at the same time with one dial, and I'm guessing the gun works on a simular principal. 

The bullet moving forward would be an easy linear morph to do.  I'm not sure how the belt would work without seeing how its wireframe looks.  For the ejected casing, you could use a bone or two to simulate its path since normal morphs don't work well for non-linear changes.

WARK!

Thus Spoketh Winterclaw: a blog about a Winterclaw who speaks from time to time.

 

(using Poser Pro 2014 SR3, on 64 bit Win 7, poser units are inches.)


mrsparky ( ) posted Sat, 13 September 2008 at 2:34 PM

The man to ask is Helgard he did all the coding magic.

Most of the other VP models included with P7 have fun features as well such EDW's Skip Loader has some clever codey stuff which makes the bucket and rams move accurately, JH's solo ship has opening canopy, and one of the included space ships was made from a design I did years ago on an Atari ST!

Pinky - you left the lens cap of your mind on again.



Helgard ( ) posted Sat, 13 September 2008 at 9:29 PM

OK, I made the model, it was textured by the incredible Panko.

It is much more complicated than a simple morph. A simple morph would allow you to fire one bullet, eject one cartridge, and move the belt one space into the breech. The is an extensive script in the Cr2, which can best be described as a repeating morph script, very similar in programming to the programming for making track tracks turn.

In essence, how it works is that a morph is created to fire the bullet, eject the cartridge and move the belt one space. The programming then runs this morph, and when it gets to the end of the morph, it jumps back to the beginning and runs it again. The programming obviously has a limit, so it cannot do an endless loop. I cannot remember now, but in the readme it says what the maximum number of bullets fired is.

I have simplified the explanation, it took three months to figure out the maths behind it, and to program it. This same script is used in a lot of Panko's guns. You can see examples here on Youtube:

http://www.youtube.com/watch?v=2EGqc58z-eQ

http://www.youtube.com/watch?v=He_Kn1qCpLU

http://www.youtube.com/watch?v=AX8rANXd3Jc

Helgard


Your specialist military, sci-fi, historical and real world site.


TheOwl ( ) posted Sun, 14 September 2008 at 10:47 AM

Dang. I really have to learn that. So I guess I have to learn some python scripting huh?

Passion is anger and love combined. So if it looks angry, give it some love!


TheOwl ( ) posted Sun, 14 September 2008 at 7:35 PM

Try animating with someone manning that badass gun! XD

Passion is anger and love combined. So if it looks angry, give it some love!


Helgard ( ) posted Sun, 14 September 2008 at 8:45 PM

The Owl,

No, there is no python scripting. The scripting is written into the CR2. It is almost like the ERC controls, but just more advanced. Open the CR2 of the browning in a word editor, and look at the programming in there. It can be done on other models by cutting and pasting the code from the browning, but you have to understand the code first, so that you know how to alter it to waork on other models.

Helgard


Your specialist military, sci-fi, historical and real world site.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.