OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Mr.Peanut on 13 Jun 2006, 02:47:38

Title: [ACCEPTED] 3D drawing demo
Post by: Mr.Peanut on 13 Jun 2006, 02:47:38
After seeing Mandoble's madness using drops to write text and draw, I was inspired and created some 3D drawing scripts, rotation functions and this demo. Just start it up and watch the magic.  If I get a few positive comments I will finish it and write some docs.

 ::)

[attachment deleted by admin]
Title: Re: 3D drawing demo
Post by: Mandoble on 13 Jun 2006, 19:46:30
Excelent. Mine was madness, yours is delirium tremens  ;D
Title: Re: 3D drawing demo
Post by: Pilot on 14 Jun 2006, 18:14:05
Whoa! :o

I must say, very nice work.  How the hell did you do that?

I wouldn't mind seeing some documentation for it.

-Pilot
Title: Re: 3D drawing demo
Post by: Igor Drukov on 16 Jun 2006, 18:15:26
Dude, I fell off my chair. This kicks major *ss. F-A-N-T-A-S-T-I-C !
Title: Re: 3D drawing demo
Post by: DeanosBeano on 17 Jun 2006, 18:57:24

Neon city :).

 nice work there Peanut. you a mathematical genius ?
Title: Re: 3D drawing demo
Post by: supershooter on 01 Jul 2006, 20:58:19
Wow. If only I could...
Brilliant m8.
Title: Re: 3D drawing demo
Post by: JasonO on 02 Jul 2006, 22:39:07
WOW man, thats freeking sweet.
Title: Re: 3D drawing demo
Post by: FiLL2d on 04 Jul 2006, 17:45:19
amazing use of particles, well done  8)
Title: Re: 3D drawing demo
Post by: bedges on 04 Jul 2006, 17:48:50
okay folks, enough of the back-slapping. either ask questions concerning the scripts or reserve your congratulations for IMs.
Title: Re: 3D drawing demo
Post by: JasonO on 04 Jul 2006, 20:02:28
If I get a few positive comments I will finish it and write some docs.

Was giving him positive comments, but ok.
Title: Re: 3D drawing demo
Post by: Mr.Peanut on 06 Jul 2006, 16:52:13
Edit:retracted
Title: Re: 3D drawing demo
Post by: Planck on 06 Jul 2006, 17:55:04
@Mr Peanut


I don't see a smiley with that comment Mr Peanut, so either you simply forgot to include one, to make sure everyone knew you were joking, or, you mean what you said, in which case it is out of order.

And in either case it is off-topic.


Planck
Title: Re: 3D drawing demo
Post by: Mr.Peanut on 13 Jul 2006, 21:20:06
There seems to be a set speed at which OFP can draw drops in a script.  In the spinning square hoop example you can see it as a slight displacement between lines in an upper corner, caused by the difference in time between drawing the first dot and the last dot.  I made a function instead of a script, and it draws the object immediately, but causes a brief game freeze as it hogs resources when drawing large figures.  In the spinning square example, when drawn by the function version, the displacement is gone but is replaced by an unslightly flicker. That is, the square draws instantaneously, but the time interval between successive squares becomes more choppy. Interesting.
Title: Re: 3D drawing demo
Post by: penguinman on 19 Jul 2006, 23:25:15
excelent, 

i must know though,


Was it hard to do, and did it take you a long time to make it?


and

Could you possibly add ambiant light to those shapes?
Title: Re: 3D drawing demo
Post by: Mr.Peanut on 21 Jul 2006, 17:53:22
The actual coding was very easy, and I simply translated the rotation routines from another language. Playing around with the routines to make interesting effects took longer. The only way to add ambient light is to use a glow type object.  A  glow type object can not be resized, and makes an annoying fire burning sound. Also, you can only have 32 or fewer light sources at a time depending on your game preferences. For a cut-scene you could simulate ambient light by placing a glow type object such that it casts light in the appropriate direction, but is not visible. Not worth the effort.

Title: Re: 3D drawing demo
Post by: penguinman on 21 Jul 2006, 22:09:17
hey, do you think you could make a script  that shoots many particles past the player at high speed to make him think he is being shot at?' or teach me how to do it?

any chance you could make a tool or tutorial that shows a MM to make these spectacular effects in his own missions.
Title: Re: 3D drawing demo
Post by: Mandoble on 21 Jul 2006, 22:35:26
penguinman, check your messages.
Title: Re: 3D drawing demo
Post by: penguinman on 22 Jul 2006, 07:31:48
hehe nice, thank you so much mandoble,


but peanut, i still would like to see a TUT from you on how to make those. THat is knowlege every mission maker needs. i could use effects like that for so many aspects of mission making.

please make a TUT

thanks