Richard Betson

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 268 total)
  • Author
    Posts
  • in reply to: Monkey 2 Splash Screen. #14444

    Richard Betson
    Participant

    So I was thinking this. 🙂

    in reply to: Alien Phoenix #14377

    Richard Betson
    Participant

    I have a series of Phoenix USC base images here on indieDB . All posted in a series under the “Base in space” title. It shows how far along Alien Phoenix is in development. Rock on.

    Phoenix USC on IndieDB

    in reply to: Alien Phoenix #14358

    Richard Betson
    Participant

    Still hard at work. You can get current developments here as well. 😉

    https://www.facebook.com/PhoenixUniverseOfSpaceCombat/

    Attachments:
    in reply to: Playniax news #14185

    Richard Betson
    Participant

    I plan to get back ( after some time off ) to some Pyro stuff …

    Good news. 😉

    in reply to: 2D lighting issue. #14184

    Richard Betson
    Participant

    So.. ya..

    I tried above and it worked well but not what I wanted and not really the right way. I ended up looking at the textures that Mark used for simple light and noticed that none of the bump-map textures used an alpha channel (RGB). So I removed the alpha channel from both the normal and specular maps and made the former alpha’ed areas black (RGB(0,0,0)). This works pretty well and appears to remove nearly all of the artifacting. I left the diffuse texture with an alpha channel. Edging the alpha’ed areas of the diffuse image in black also seems to help. This might have been what Ethernaut was trying to get across to me, either way it seems to solve the specular issue without resorting to changing a shader.

    My only real issue left is my issue with positioning and textureflags, which I will code out in example form. After messing with mojo’s shaders I am interested in doing more with shaders.

    in reply to: 2D lighting issue. #14171

    Richard Betson
    Participant

    Hi,

    I have been tackling the bumpmap artifacting issue I was encountering and ended up changing mojo’s ‘ light.glsl ‘ shader a little bit. I adjusted the normal from this:

    normal.xy=normal.xy * 2.0 – 1.0;

    To:

    normal.xy=((normal.xy * 2.0 – 1.0)*0.5);

    This really sweetened things up quite a bit and removed all of the heavy artifacting. Here is a copy of the modified mojo light.glsl shader. Off to work on example code.

    in reply to: 2D lighting issue. #14150

    Richard Betson
    Participant

    Just out of curiosity, can you try these?

    I sure can. Will try them later today.

    also noticed the specular map was not aligned with the other two

    Hummmm.. That should not be the case, I will take a look at that as well.

    I’ll be working on a code example as well later today to illustrate the positioning issue I have described above. I really do understand Marks point about jumping between integer pixel coordinates, but what I am experiencing is well beyond a one pixel jump. In fact if you look closely at the at the first part of the video the base floor (with the light on it left of ship) is moving as I would expect with Textureflags.None (base floor is a bumpmap image). You can also use that base floor as a reference on pixel size with the grate (black crosshatch line looking parts of the image) crosshatch lines which are about 2 pixels wide. Using that as a reference to pixel size it should be come clear how far the non-bumpmapped space station images images are actually moving around. More then a pixel jump (to my eyes) and only the non-bumpmapped images act this way with TextureFlags.None. Even so all of the images use the same texture flag and should move in the same manor.

    I should have something late tonight. and thanks for the advice on image/texture maps, I’ll let you know how it turns out.

    in reply to: 2D lighting issue. #14143

    Richard Betson
    Participant

    @Mark Sibly

    Hi, ya we did kind of go over this but what I am experiencing seems to be beyond that discussion. The asteroids and the space stations ‘images’ all use the same texture flag (in video above) so I am confused why if the asteroid (bumpmap images)  and the space station images  (with a common position system) all use the same filtering why do the non-bumpmapped images (space station) move in an irregular fashion (way more then a pixel)  but the bump mapped images do not. I’ll just have to break this out in code all though I was hoping for one of our lot to say “hey dude it’s this” and why I posted a video. I’m behind in my schedule so pressed for time.

    I do not use a texture atlas or sprite sheet. Each image (sprite, image) is loaded individually.

    I’ll put together am example that clearly outlines the issue. BTW, when I post a video or some such it is often in an effort to get some feedback and direction which often leads to a better code example and a better understanding of the issue involved. 😉

    in reply to: 2D lighting issue. #14138

    Richard Betson
    Participant

    @ethernaut

    Hi, as I indicated above I am using images with the same texture flags and using mojo layout and simply drawing images to canvas. I’m most concerned about the positioning issue when using TextureFlags.Filter as it seems that using that filter with non-bumpmapped ‘images’ (like the space stations seen in video) and bumpmapped ‘images’ does not work correctly. Why are the positions of the space stations adversely effected using TextureFlags.Filter when all other texture filters seem to work (image position wise)?

    As far as the artifacting of ‘images’ (simple load image and then draw to canvas) this may be an issue with a normal map or specular map, but I have tried several combinations and all will artifact when using TextureFlags.Filter and TextureFlags.FilterMipmap. I have included a current copy of a bump map image below.

    Essentially I am just loading bump mapped and non-bump mapped images with the same texture flags and drawing them to canvas. The only really sophisticated thing am am doing is multiple passes with lighting and shadows, for example :

    So no real tricks here and pretty much straight forward. Have a look at the bump map images below and let me know what you think.

    .

    Edit TextureFlags.FilterMipmap also has an issue with lights wiggling there position (similar to the space stations). I may do a video for that as well. If I have to I will work up a code example but I’m hoping not to have to as that would take some time. Hopefully Mark might have insight.

    in reply to: Alien Phoenix #14089

    Richard Betson
    Participant

    I’ve posted a ‘wide’ screen shot of my desktop showing some of the error reporting work I have been doing with Alien Phoenix. You can just make out an error being reported in a console in an app (left side of screen) using Alien Phoenix and in the TED2GO IDE (center). Even though an error message indicates an image is missing the framework will in many cases report the error and continue to run. This aspect should be useful in game development both in error reporting and robust continued app operation despite common errors like a missing image.

    Attachments:
    in reply to: Nice Mojo3D Plane Demo #13998

    Richard Betson
    Participant

    Very nice! . . . and in Emscripten to boot. Extra bonus points.

    in reply to: BloodCrypt Released #13989

    Richard Betson
    Participant

    Looks good. No Linux version. 🙁

    in reply to: Monkey 2 Splash Screen. #13965

    Richard Betson
    Participant

    I have posted (Zip file) code and resources to my monkey splash screen demo here.

    For completeness below is the light image and code for the splash screen. You will need resources above as well.

    Attachments:
    in reply to: Alien Phoenix #13947

    Richard Betson
    Participant

    These images show Alien Phoenix’s mapping system in action. The map system allows you to essentially fill a 2D plane space with part objects (walls, floors, etc). This allows multiple levels or layers of simultaneous game play on the same map.

    in reply to: Monkey 2 Splash Screen. #13936

    Richard Betson
    Participant

    The rest of the title resources.

Viewing 15 posts - 76 through 90 (of 268 total)