Feral Heart

Help & Guidance => Member Made Tutorials => Modding & Meshing Tutorials => Topic started by: Ruby1234 on April 03, 2016, 05:42:11 pm

Title: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 03, 2016, 05:42:11 pm
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Kynvuu on April 03, 2016, 07:46:23 pm
Ahh This is so very helpful! Thank you for putting your time into making this and sharing it with us. c: +Floof
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 03, 2016, 07:48:22 pm
Ahh This is so very helpful! Thank you for putting your time into making this and sharing it with us. c: +Floof
Glad you think so!
No worries, best I can do with this useless knowledge. xD
+Floofback
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Hakumi on April 03, 2016, 07:55:14 pm
Looked at this the first time...Had zero clue.
Then I stopped overthinking for a bit & everything started making sense.
This is very well done. You did awesome on this, you is smart c:
- Le Nuzzles , Pandeer Sticker To The Snout -

Also, I know it's old, but....good job on the preset coding too ^^ that helped me a lot when I was first making presets c:
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 03, 2016, 07:59:25 pm
Looked at this the first time...Had zero clue.
Then I stopped overthinking for a bit & everything started making sense.
This is very well done. You did awesome on this, you is smart c:
- Le Nuzzles , Pandeer Sticker To The Snout -

Also, I know it's old, but....good job on the preset coding too ^^ that helped me a lot when I was first making presets c:
Glad it's starting to make sense to you! Can always let me know if you have any questions. cx
Thanks for the nice feedback.? Happy to be of help.
+Nuzzleback
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Kynvuu on April 03, 2016, 08:30:33 pm
Thanks for the floof back dear<3 I actually have a question for you if you don't mind, since you seem to know quite a bit about Ogre coding c: By any chance, is it possible to play a sound file upon collision with an object in Feral Heart? I know in FH its possible to add a sound to your object, but I was curious to know if there were some codes I could implement somehow so that this sound file only played on command with collision. Not sure if its possible within FH, but if you knew any tricks I'd appreciate it :3
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 03, 2016, 08:45:11 pm
Thanks for the floof back dear<3 I actually have a question for you if you don't mind, since you seem to know quite a bit about Ogre coding c: By any chance, is it possible to play a sound file upon collision with an object in Feral Heart? I know in FH its possible to add a sound to your object, but I was curious to know if there were some codes I could implement somehow so that this sound file only played on command with collision. Not sure if its possible within FH, but if you knew any tricks I'd appreciate it :3
Unfortunately, that's not going to be possible with just a material script.
The material scripts can only control how the object interacts with the environment, via lights/shadows/textures/the like, it cannot dictate how the player unit will interact with the object.
It's basically just changing the way the object is observed.
A specific sound-on-collision function would have to be programmed into the game itself. :c
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Kynvuu on April 03, 2016, 08:48:53 pm
Thanks for the floof back dear<3 I actually have a question for you if you don't mind, since you seem to know quite a bit about Ogre coding c: By any chance, is it possible to play a sound file upon collision with an object in Feral Heart? I know in FH its possible to add a sound to your object, but I was curious to know if there were some codes I could implement somehow so that this sound file only played on command with collision. Not sure if its possible within FH, but if you knew any tricks I'd appreciate it :3
Unfortunately, that's not going to be possible with just a material script.
The material scripts can only control how the object interacts with the environment, via lights/shadows/textures/the like, it cannot dictate how the player unit will interact with the object.
It's basically just changing the way the object is observed.
A specific sound-on-collision function would have to be programmed into the game itself. :c

Ah, alright, I see. Thank you for the help anyways, I appreciate it~ ^w^
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 03, 2016, 08:50:39 pm
Ah, alright, I see. Thank you for the help anyways, I appreciate it~ ^w^
No worries! c:
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: G4RG0YLE on April 03, 2016, 11:29:10 pm
Lovin' this, thank you very much! c: Keep up the amazing work!
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 04, 2016, 01:00:59 am
Lovin' this, thank you very much! c: Keep up the amazing work!
Thank you!
I s'pose I can add more based on any requests of codes/tricks people wanna see, otherwise I'm not too certain what I should add next. uwu*
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Preach on April 04, 2016, 01:07:16 am
Mother of Coding *bows* Thank you for sharing. This is truly helpful. <3
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 04, 2016, 01:16:49 am
Mother of Coding *bows* Thank you for sharing. This is truly helpful. <3
Aaah, no worries!
Glad you think so!?
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Reaper on April 04, 2016, 07:10:55 pm
Thank you for the valuable information. This could come in handy.
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 05, 2016, 04:16:31 am
Thank you for the valuable information. This could come in handy.
Aye, my pleasure!
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Edolicious on April 08, 2016, 04:28:38 pm
I've seen preset coding tutorials and such, but this really takes it to a whole new level.

Thank you for taking the time to show us how these these thingz work, very nicely done.
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on April 08, 2016, 09:30:34 pm
I've seen preset coding tutorials and such, but this really takes it to a whole new level.

Thank you for taking the time to show us how these these thingz work, very nicely done.
Thank you for the kind words.

And it's my pleasure.
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Wyldercat on May 01, 2016, 06:53:34 pm
Wow, this was really in depth and useful! This is really getting me back into coding!
Title: Re: OGRE Scripting Breakdown (LEARN BASIC MATERIAL CODING!)
Post by: Ruby1234 on May 01, 2016, 09:22:38 pm
Wow, this was really in depth and useful! This is really getting me back into coding!
Glad to hear it!?