Author Topic: Thinking about some RPG..Android version.  (Read 111658 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #555 on: November 13, 2014, 07:58:11 pm »
no problem ;)
That's cool. The issue is the same that i had with my first tree model. In the ~middle of the trunk, there's a point where the texture "flips", i.e. it goes from the roots to that point and then continues up to the branches in a mirrored way. That's all fine and looks good, but at that particular point, the bilinear filter blends the trunk with the first line of the upper half of the texture, which is transparent (because it contains the leafs). And because the whole tree is rendered transparent (you don't see this, but it is), there's a transparent line at this point especially on mobile devices and when using mip maps. The solution is to change the uv mapping of that part to leave out a few upper lines of the lower half of the texture, so that it doesn't bleed into the transparent part.

Here's the model: http://jpct.de/download/tmp/birchtree.zip

And here's a screen shot that shows the position (the effect isn't that noticable here because...desktop):



Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #556 on: November 14, 2014, 10:13:28 pm »
Oh, there is something wrong with import, model completely lost UVs. Could you save it in another format?


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #557 on: November 14, 2014, 10:31:15 pm »
That's caused by my stupidity!  :-[ I bundled the right texture with the wrong model. I've reuploaded the zip, it should be fine now.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #558 on: November 15, 2014, 08:46:49 am »
Is it better? I could not replicate the problem.

https://dl.dropboxusercontent.com/u/26148874/birchtree2.3ds

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #559 on: November 15, 2014, 10:15:26 pm »
It's better but not fixed and it introduces some seams that weren't there before. I understand that you can't reproduce it...you would have to render it on a mobile device with transparency and mipmaps enabled and it might differ from gpu to gpu in strenght too. Anyway, i try to explain what i had in mind to fix it based on this image:



At the moment, the mapping starts with the bottom of the trunk mapped with the bottom of the texture and then it goes up like the red arrow to the left shows. Then it flips to the right side (mapping wise) and maps from the top of the tree down to the end of the red arrow. Where they both meet, the problem occurs. Simply because the bilinear filter starts to blend in parts of the upper half of the texture, which is transparent (or white in this case). My idea was to "simply" limit the u/v coords so that they don't go all the way up (or down) like the red arrow does but do it like the green arrow shows. There won't be a seam that way and no accidental blending with the upper half either.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #560 on: November 16, 2014, 11:46:22 am »
So, if I understood it correctly, it should be fine now.



https://dl.dropboxusercontent.com/u/26148874/birchtree.3ds

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #561 on: November 17, 2014, 07:49:17 am »
Looks fine now except for a tiny artifact in the smallest mipmap stages. But i think that i can fix this in my mipmap generation code. Thanks for your help!  :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #562 on: November 17, 2014, 10:22:25 pm »
I always had this feeling that something was missing in the world...now i know:


Offline Wolf17

  • int
  • **
  • Posts: 77
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #563 on: November 20, 2014, 05:43:01 pm »
  Just curious :)!  Are you planning to have multiple character classes ?
One more thing .....   The fence and door appears to be kinda floaty ! 

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #564 on: November 20, 2014, 08:59:05 pm »
  Just curious :)!  Are you planning to have multiple character classes ?
No, there won't be character classes. You'll have a skill tree and some basic character attributes like strength and dexterity and things like that. Every character can learn every skill (as long as he/she has enough skill points, of course). I'm still undecided about the attributes though. I might base them on the player's answers to some questions at the beginning like the old Elder Scrolls games do it or let the player distribute them directly or maybe a mix of both...we'll see.

One more thing .....   The fence and door appears to be kinda floaty !
The door is floaty, because it doesn't touch the ground. The fence isn't floaty. I see what you mean, but that's just how it looks without shadows and SSAO. It looks better in motion.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #565 on: December 01, 2014, 10:03:55 pm »
Added levers to the dungeons to close/open doors. Actually, i hadn't planned for this, but it will add some variation, i guess.


Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #566 on: December 02, 2014, 11:17:24 pm »
Is it something like is in my game (linear) or just up/down? You could also add some traps.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #567 on: December 02, 2014, 11:22:33 pm »
Just up and down...it opens doors, which are either open or closed. Traps...well, i don't think so. The focus isn't too much on making the dungeon crawling feeling like old school.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #568 on: December 04, 2014, 11:31:07 pm »
 ;D

The first version of the main quest is complete now as far as dialogs and quests are concerned. It's still missing all the dungeons that it will finally include but you can play through it already with a lot of "fake" dungeons (i.e. very small ones that only contain the quests items in a chest).

I had to write 244 dialog entries for it so far... :P

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #569 on: January 29, 2015, 10:32:31 pm »
The game now includes 42 NPCs with dialog still missing for <10 of them. After that dialog and the side-quests have been added, i have to go into the ground and build the actual dungeons...but for today, i've added pine trees. The are using a custom shader with stippled alpha instead of full alpha blending and slightly modified animations.