September 23, 2019, 06:59:40 AM

Author Topic: ..level conversions..  (Read 4745 times)

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2000
Re: ..level conversions..
« Reply #45 on: August 28, 2017, 11:12:10 AM »
Well SetObjectImage can have up to 8 images that are combined with a shader to give a particular look.  I guess you could use your uv maps for this.

https://www.appgamekit.com/documentation/Reference/3D/SetObjectImage.htm

[edit]
Mike beat me too it lol.

Quote
Keep this level of enthusiasm up and I might find myself checking in daily at www.AGKbomb.com in time.  :)

lol. Good.  ;D
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Naughty Alien

  • Hero Member
  • *****
  • Posts: 630
Re: ..level conversions..
« Reply #46 on: August 28, 2017, 11:13:53 AM »
..im usint this command to load lightmap..but if i want to set blending mode for  lightmap (or any particular loaded image, used for HUD), how to set/enable blending mode ?

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 599
Re: ..level conversions..
« Reply #47 on: August 28, 2017, 11:15:48 AM »
..im usint this command to load lightmap..but if i want to set blending mode for  lightmap (or any particular loaded image, used for HUD), how to set/enable blending mode ?

https://www.appgamekit.com/documentation/Reference/Sprite/SetSpriteColorAlpha.htm

The command page has a nice search function  :P

Offline Naughty Alien

  • Hero Member
  • *****
  • Posts: 630
Re: ..level conversions..
« Reply #48 on: August 28, 2017, 11:32:57 AM »
..hmm..but this is alpha settings of a sprite..i mean..its not ADD or MULTIPLY and so on, blending mode, which im after..?

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 599
Re: ..level conversions..
« Reply #49 on: August 28, 2017, 11:36:02 AM »
..hmm..but this is alpha settings of a sprite..i mean..its not ADD or MULTIPLY and so on, blending mode, which im after..?

I guess you have to pray to the shader gods on the offcial forum then.

Offline Naughty Alien

  • Hero Member
  • *****
  • Posts: 630
Re: ..level conversions..
« Reply #50 on: August 28, 2017, 12:29:45 PM »
...okay..now another test..i can load 3D model and corresponding lightmaps and attach them manually..it works..now, if i want to load 3D model which is lightmapped and export file is B3D, and lightmap UV is 1 as it is default, should i expect lightmap to be attached properly to 3D object in such case?? I mean, just by loading 3D model, lightmap attached to it in Gile, for example, will be loaded and attached automatically as B3D ??

Or in short, can you try this 3D model/lightmap in attachment, please. Its ruins scene from Gile. If you load RUINS.B3D in Blitz3D, all will be loaded at once (diffuse+LM)...now, is this how AGK should work, or regardless how level is exported, textures must be added to mesh, manually??

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2000
Re: ..level conversions..
« Reply #51 on: August 28, 2017, 01:54:01 PM »
Wish I could help you more man, but I'm working on a 2d game before I tackle any 3d stuff in AGK.

Probably best to ask at the AGK Site and report back here.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 599
Re: ..level conversions..
« Reply #52 on: August 28, 2017, 06:21:01 PM »
should i expect lightmap to be attached properly to 3D object in such case?

I don't think so. I only use OBJs but ther eI have to attach the texture manually.