Feral Heart

Off topic => Discussion Board => Topic started by: trowalyn on April 30, 2017, 03:54:14 pm

Title: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on April 30, 2017, 03:54:14 pm
Hey, we've been searching for an answer for months now and no one can help us!

We have tried a lot of codes already and were looking around on KITO but weren't successful
We really want this water ingame like Wolf Soul had.
So is there someone who knows how to convert the FH water into IT?

We'd really appreciate it if you're able to show or help us how to do it!
Title: a
Post by: xSpirit on April 30, 2017, 08:34:18 pm
a
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on April 30, 2017, 09:37:42 pm
she hates you for good reasons, it was -Removed by moderator- what you did

Anyways, thanks for that but it will cause too much lags, hope there is someone who knows how to do it or can contact myz for us
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on May 01, 2017, 04:58:46 am
Bump, anyone?
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on May 02, 2017, 02:37:30 pm
Bump
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: Kuri on May 02, 2017, 09:00:44 pm
I'm not professional or anything but....    The reflections or the collision boxes?  I've tried to apply the reflections to objects with varying success but not 100% sure how to do it in IT, pretty sure it'd be simple though.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on May 03, 2017, 05:01:13 am
Both!
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: Tigg on May 20, 2017, 08:17:56 pm
Im Grunde ist das eine Ogre spezifische Sache. Man muss sich den Wassercode halt aus den FH Dateien raussuchen und mit dem Code in It ersetzen. Soweit die Theorie, in wie fern das dann auch so klappt ist fraglich. Womöglich kann man auch einfach ein Custom Wasser mit der reflektierenden Fläche machen. Ich gebe da aber keine Garantie drauf.

So it should be working just with ogre. Look for the reflecting watercode in FH and paste it to the IT water code. Thats just a theory, if it really works is questionable.
Maybe you can just make a custom water and use the FH coding for it. I cant guarantee that this works thou.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: Kuri on May 20, 2017, 08:39:31 pm
That's the thing though.  i was looking int the copy of IT i had and couldn't find the water or texture for it.  i did put the water reflect onto billboards and mesh in FH though.  Only worked from odd angles so you can't fake the water reflect as an object very well.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: Vilivikhorith on June 05, 2017, 12:27:38 am
All you need to do is take the `water.material`, `water.cg`(from FeralHeart/media/materials), and place them somewhere in your resource load path. Then just do `water->setMaterialName("WaterReflectMat");` or something like that, when the water is given a material in the code. Or just take the 'WaterReflectMat' section of the material (the .cg file is still important, it has the GPU shader program...). Or something!!!

That's the thing though.  i was looking int the copy of IT i had and couldn't find the water or texture for it.  i did put the water reflect onto billboards and mesh in FH though.  Only worked from odd angles so you can't fake the water reflect as an object very well.
Using `WaterReflectMat` also works for objects in FH, but because of how the shader script was made, you just get a shiny, reflective, flat puddle, that can, however, be rotated! :V Using several objects you could prolly like... Build a giant water cube or sumfin'.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on August 22, 2017, 07:32:42 pm
AAAHH, I'm so sorry for the late reply ;_; I was on vacation! Thank you so much for the help, we will try this and look how it'll work! :)

Danke auch dir Tigg :)

*Edit
So we tried it and this is what came out:
http://www.bilder-upload.eu/show.php?file=deb1e0-1503436411.png (http://www.bilder-upload.eu/show.php?file=deb1e0-1503436411.png)

Quote
its working yeah but not how its supposed to work

reflective water how wolf soul had

i was even underwater to see if theres something wrong
but no just when u lookfrom above on it and it eats meshes

do i have to put a code into the IT-source and where exactly to put it
what do they mean with resource loading path
i lost track there

Anyone can help? :)
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on August 27, 2017, 04:55:57 pm
I really hope someone can help.. it must be kinda possible to make this work Dx
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: WolfQueen on August 27, 2017, 06:40:22 pm
Shadows and reflective water doesn't work together in the version of OGRE Impressive Title runs on. Try removing the code for shadows in the source before adding in the reflective water.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on August 27, 2017, 08:11:59 pm
Thank you so much WolfQueen! We will try it! :)
Also, can someone help us with this? We lost track when it came to the resource load path, she doesn't know what, where, who, huuuh? xD We need more detail!

All you need to do is take the `water.material`, `water.cg`(from FeralHeart/media/materials), and place them somewhere in your resource load path. Then just do `water->setMaterialName("WaterReflectMat");` or something like that, when the water is given a material in the code. Or just take the 'WaterReflectMat' section of the material (the .cg file is still important, it has the GPU shader program...). Or something!!!
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: Vilivikhorith on August 28, 2017, 07:05:59 am
it looks like the shader programs have compiled but aren't running (they turn black when there's some problem with it running on the GPU. The material compiles still, so it's not white.), which is pretty strange. Rumour is that FeralHeart has no shadows due to the reflective water bits, so I guess this is a problem with Ogre 1.7.1 (and/or thereabouts), as WolfQueen said.

I did go a bit overboard with posting code snippets, I suspect a lot of coffee that day... Anyways, you will only need to assign the water a new material in the code if you want to make a reflection toggle button. replacing .materials works too. :P

Since the water isn't white, you must have placed it in your resource path. Ogre parses the `resources.cfg` in the binary's directory by default and loads all the stuff it finds in the paths defined in the file. sorry that had confused you, but I pretty much meant drop the files in one of those folders.

As a side note, it looks like Ogre 1.7.4 (As used in Dragon's Den) can do water reflections and shadows. Upgrading may not be so trivial, but not impossible, if you want both.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on August 28, 2017, 01:54:01 pm
AAAH, we are coming closer now!
Thank you for the clarification, Vilivikhorith :)
Also thanks to the others who are helping us alot!

There are still 2 questions. Dx
First one: which code do we have to remove or change (the shader thingy)?
Because we already tried something like this and failed. She removed everything except for the "underwatershader", then she changed the material name in the source from "pseudo/underwater" to "waterreflect". When she has done that, the sky turns into water which follows you when you fly higher.

Second one: how do we update the ogre version? :O
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on September 09, 2017, 10:11:10 pm
Sorry for double posting, just wanted to know if anymore can answer these questions above.. :O
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: Vilivikhorith on September 12, 2017, 03:24:46 am
In my source copy, inside of MagixWorld.h, function declaration `void addWaterPlane(const Vector3 &position, const Real &scaleX, const Real &scaleZ, const String &matName="Terrain/CalmWater", const String &playSound="")`. That looks like the hard coded default material name-string you want to change (to me.).

Unless there's a specific KITO guide for upgrading out there (I seem to remember one or sumfin'...), I would grab the 1.7.4 source archive (or maybe the SDK, I am not sure which will be easier for you) from: https://sourceforge.net/projects/ogre/files/ogre/1.7/ and use the libs and includes from it when building your application. Of course, if you get any compiler errors when compiling your IT clone, you'll have to resolve those manually.
Title: Re: [PROFESSIONAL HELP NEEDED] Feral Heart Water in Impressive Title, HOW?!
Post by: trowalyn on September 15, 2017, 10:46:19 am
AH, ty so much!! We will try it asap!