Using a .B3D - .DDS texture with alpha mask?
Was trying to use a b3d I had that used an alpha mask DDS texture but I can't get the alpha mask to show. I've tried saving the DDS in a number of formats and then tried converting it to a PNG with an alpha mask. The 3d model looks fine in Milkshape before converting and looks fine in Fragmotion when the b3d is loaded. Exporting from Fragmotion doesn't help. But it won't show as alpha mapped in Blitz3d. Is there some extremely 'doh' step I've missed out that will show the alpha mapped texture?
Thanks for any help.
Hey Grumpy, have you tried setting the texture flags when loading the texture?
Thanks for the reply. I've been using the .B3D exported from Milkshape and Fragmotion (which include the textures and materials). The Fragmotion shows the Group with two materials, one as an alpha layer. I've played around with loading textures and this fixes that particular problem but there must be a problem with the load B3d routine within Blitz3d. I seem to remember in the far past there was a way around this but it's eluding me at the moment. Will go through my archives (didn't realise there was so much :) )
sure thing. I do remember you can also set it on milkshape and fragmotion with the right settings.
You can also try and find existing b3d models from examples that uses alpha and loads properly without code.
I went in with an Hex Editor to see what was happening and it looks like the Milkshape B3D exporters are saving them with the default TextureFlag of '1'. Now it's possible to alter the flags in Fragmotion but I'm still stumbling around in Milkshape to see if it can be done there. Just had a look at the old Milkshape forums and it doesn't seem possible within Milkshape. so it's either Fragmotion or hex editor to change the value from '01' to '0D"
B3D specs are here if anyone's interested - https://web.archive.org/web/20170322090148/http://www.blitzbasic.com/sdkspecs/sdkspecs/b3dfile_specs.txt
Also while I was poking around I came across a 3d file converter Bitturn that might be handy for some - http://mirex.mypage.sk/index.php?selected=1
Thanks for sharing. Afaik milkshape has a better exporter than fragmo. Have you also tried blender with the exporter plugin?
Reply To Topic (minimum 10 characters)
Please log in to reply