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

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #75 on: January 28, 2012, 02:56:09 am »
Those blobs make all the difference IMO despite being a simple addition. Nice.

That tree is the same one as in the jPCT demo's yeah? I slightly modified it to straighten out that pronounced fork in the trunk, removed 59 double vertices, rotated it natively for jPCT, and made some of the lower leave planes smaller so they don't stick out as much. It may improve performance a bit.

[attachment deleted by admin]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #76 on: January 28, 2012, 12:09:21 pm »
That tree doesn't work well...with backface culling enabled, there are missing leaves and with backface culling disabled, the trunk has wrong lighting, because polygons from both sides show through.

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #77 on: January 28, 2012, 04:47:17 pm »
Ah ok the double-sided normals option in blender is dependent on the renderer so it seems that jPCT doesn't support this feature. I created the double sided planes manually and flip the normals, those extra vertices are back in business now.

Attached is the new tree.

[attachment deleted by admin]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #78 on: January 28, 2012, 04:49:00 pm »
It looks a lot better I think.  Didn't that increase texture size?
No, it doesn't. It's just some additional stuff added to the already existing texture that i use for texture splatting.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #79 on: January 28, 2012, 06:12:46 pm »
Ah ok the double-sided normals option in blender is dependent on the renderer so it seems that jPCT doesn't support this feature. I created the double sided planes manually and flip the normals, those extra vertices are back in business now.

Attached is the new tree.
The leaves look fine now...however, this model has a small problem with texturing. I think that the former one had that too, but it wasn't that obvious...
The problem is, that i have to enable transparency for the whole tree. The two parts of the texture (trunk and leaves) cause artifacts where the texture coordinates of the trunk are coming close to the leave texture...i don't know how to describe this in an understandable way...i'll post an image:



Is it possible to make the trunk parts in question use texture coordinates that are a bit lower (i.e. farer away from the leave part of the texture)?

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #80 on: January 28, 2012, 06:29:37 pm »
 :o that's a bit odd, looks like your texture is different to mine since mine renders fine using transparency. That can easily be fixed but I need your texture to align it properly.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #81 on: January 28, 2012, 08:50:59 pm »
Sure. Here it is:

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #82 on: January 28, 2012, 10:13:46 pm »
Here it is:
https://rapidshare.com/files/3667882740/bowAnim.zip

Blender made a lot of changes so I hope it works out.  The arrow may be a little long but I didn't notice till I was finished.  The arrow is just black, no texture.  The bow and arm are supposed to be simple textured.  I'm not the greatest in Blender, especially with all the changes they made.  If it doesn't work, I can try again.
The texturing is fine and the bow looks cool in game. I've removed the arrow and will keep it as it's own separate object that simply translates during the animation. However, the animation itself doesn't look right. The bow somehow stretches when firing where it should actually just bend. Here's a video showing the problem: http://jpct.de/download/tmp/bow.mpg

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #83 on: January 28, 2012, 10:21:42 pm »
OK, yeah, that's because I was having trouble in Blender.  I'll go over it again.  I'm going to need to figure this out anyway.  I tried to sort of cheat and it backfired on me apparently. 
click here->Fireside 7 Games<-

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #84 on: January 28, 2012, 10:38:48 pm »
BTW, would you rather save the vertices on the lower part of the bow since it's not visible, or does that matter?  I may need to add a couple loops right where that bend is so it looks better.
click here->Fireside 7 Games<-

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Thinking about some RPG..Android version.
« Reply #85 on: January 28, 2012, 10:41:39 pm »
It doesn't matter ATM, but i would rather keep them just in case.

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #86 on: January 29, 2012, 12:27:36 am »
OK, I got bones to work this time, but I couldn't add a couple loops to make that bend look better because the model was triangulated already.  Check it out:

problem with that download, use link below.

I could redo the bow if the bend doesn't look good, yet.  There's only 3 animations without the arrow.
« Last Edit: January 29, 2012, 12:53:54 am by fireside »
click here->Fireside 7 Games<-

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #87 on: January 29, 2012, 12:53:00 am »
There was another problem I missed with the handle:
https://rapidshare.com/files/120595021/bowAnim3.zip

click here->Fireside 7 Games<-

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #88 on: January 29, 2012, 02:03:21 am »
Using the Armature system in Blender may get that bow bending correctly. Or if you are using Armature's, I feel your pain. It's a headache getting it working properly..

Here's the new tree with modified texture co-ords. I couldn't replicate it in-game so I think it's something happening on your end. GLES20 texturing offset issue perhaps?

[attachment deleted by admin]

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Thinking about some RPG..Android version.
« Reply #89 on: January 29, 2012, 02:38:44 am »
They say they are making Blender easier but I don't see it.  It seems to get harder and buggier with every release.  Still, it's amazing what people can do with it.  Their new action system took me forever to even find it and I seem to get more bones than what I want and they automatically weight themselves even when I choose not to do it.  It's getting better as I get more used to it.
« Last Edit: January 29, 2012, 02:40:55 am by fireside »
click here->Fireside 7 Games<-