..level conversions..

Started by Naughty Alien, August 22, 2017, 14:55:07

Previous topic - Next topic

Steve Elliott

#45
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
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Naughty Alien

..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 ?

MikeHart

Quote from: Naughty Alien on August 28, 2017, 11:13:53
..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

Naughty Alien

..hmm..but this is alpha settings of a sprite..i mean..its not ADD or MULTIPLY and so on, blending mode, which im after..?

MikeHart

Quote from: Naughty Alien on August 28, 2017, 11:32:57
..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.

Naughty Alien

...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??

Steve Elliott

#51
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.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

MikeHart

Quote from: Naughty Alien on August 28, 2017, 12:29:45
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.