Stolfenwein 3-D - RayCast Engine for Construct2

  • Update 0.5

    This ain't dead just yet!

    Features / useful additions

    • Particle system composed of billboard sprites
    • Sprite & wall world placement are now calculated from inverse transformation matrices - removes a couple of displacement issues
    • Floor & ceiling rendering
    • 3d bullets - projectiles can bounce in 3d space
    • 3d raytrace for hitscan weapons
    • Objects have height(depth) on Z-axis (collision detection)
    • Looking up/down + mouse aim
    • Texture precooking engine (set ambient, diff color, texture maps, then at level start the slicer will load the texture in the raycasting image banks)
    • Fake lighting using Tint / Tint Mask effects
    • Colored distant fog + weather effects
    • Post processing: Aiming motion blur

    Some eye candy

    Cheers!

    thanks for the update post but wheres the capx ?

  • imgur.com/a/ofwBY7b

    getting this error in latest c2 version on testing.

    also shooting and axe slashing wont deal any damage to enemies. is that normal ?

    Hi, You get error due somewhat broken mouse or look behavior I have this one too and developer maybe fix it sometime later when he is going to port engine to C2. Right now I think this example is just to make stuff render in Wolf 3D manner. Engine is still early in development. So I think you could just use it for rendering walls and objects while the rest you could make yourself like I did. I hope this answers your questions.

  • Check weltenschmid's fix on the mouselock behavior:

    Aw crap, can it be that posts randomly get deleted? Just posted the solution and a minute later the post was nowhere to see... might be that it suddenly may appear again. My post count is on two but the search just shows one?!? Schräg!

    Okay, got the quick fix. Just saw that they realized it as well in the MouseLock forum section and are working on an update. For us it's simple: Go to the the Construct 2\exporters\html5\plugins\MouseLock_Ver_0.5 Folder open runtime.js and at line 440 comment or delete the following lines:

    document.pointerLockElement =	/*document.pointerLockElement 	||
    										//commenting out the above line makes this work as intended. Don't know why.
    										document["mozPointerLockElement"]	||
    										document["webkitPointerLockElement"];[/code:u8ds4d4m]
    That does the trick! If you feel like tidying up you can set the MouseLock Object's property to single click and remove the left click event. 
    
    By the way, the RealDanyyy used the situation to his best and promoted his MouseLock plugin: [url]https://www.scirra.com/forum/new-simple-native-like-mouselocking-plugin_t199484[/url]
    Might be of interest to you?
    
    So now I feel like tinkering! Cheers! 
    
    -------
    
    Update: Didn't knew if it was me or was it just an illusion that you had hitting scenes in your screen shoots I thought. So I sought for the source of the missing hit. Don't know why you are setting the bullet's targets at the start of the layout and not at their creation time, but after changing it, the striking and shooting works again! Woot! 
    
    [img="https://3.bp.blogspot.com/-Kdg_N1ENIgg/WrAkYdj7C-I/AAAAAAAACFE/YlXo_Dj9qWEbu4bI-Nww5okTrjwPB-LzACLcBGAs/s640/bulletOnCreated.jpg"]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Check weltenschmid's fix on the mouselock behavior:

    > Aw crap, can it be that posts randomly get deleted? Just posted the solution and a minute later the post was nowhere to see... might be that it suddenly may appear again. My post count is on two but the search just shows one?!? Schräg!

    >

    > Okay, got the quick fix. Just saw that they realized it as well in the MouseLock forum section and are working on an update. For us it's simple: Go to the the Construct 2\exporters\html5\plugins\MouseLock_Ver_0.5 Folder open runtime.js and at line 440 comment or delete the following lines:

    >

    >

    document.pointerLockElement =	/*document.pointerLockElement 	||
    > 										//commenting out the above line makes this work as intended. Don't know why.
    > 										document["mozPointerLockElement"]	||
    > 										document["webkitPointerLockElement"];[/code:u8ds4d4m]
    > That does the trick! If you feel like tidying up you can set the MouseLock Object's property to single click and remove the left click event. 
    > 
    > By the way, the RealDanyyy used the situation to his best and promoted his MouseLock plugin: [url]https://www.scirra.com/forum/new-simple-native-like-mouselocking-plugin_t199484[/url]
    > Might be of interest to you?
    > 
    > So now I feel like tinkering! Cheers! 
    > 
    > -------
    > 
    > Update: Didn't knew if it was me or was it just an illusion that you had hitting scenes in your screen shoots I thought. So I sought for the source of the missing hit. Don't know why you are setting the bullet's targets at the start of the layout and not at their creation time, but after changing it, the striking and shooting works again! Woot! 
    > 
    > [img="https://3.bp.blogspot.com/-Kdg_N1ENIgg/WrAkYdj7C-I/AAAAAAAACFE/YlXo_Dj9qWEbu4bI-Nww5okTrjwPB-LzACLcBGAs/s640/bulletOnCreated.jpg"]

    yeah i fixed the error but a newer capx would be awesome, would even pay for v0.5 ! since the raycast template in the store is absolute not worth it. this one works much better but its kinda useless to me without even damage to enemies ..

  • > imgur.com/a/ofwBY7b

    >

    > getting this error in latest c2 version on testing.

    >

    > also shooting and axe slashing wont deal any damage to enemies. is that normal ?

    Hi, You get error due somewhat broken mouse or look behavior I have this one too and developer maybe fix it sometime later when he is going to port engine to C2. Right now I think this example is just to make stuff render in Wolf 3D manner. Engine is still early in development. So I think you could just use it for rendering walls and objects while the rest you could make yourself like I did. I hope this answers your questions.

    i am not quite good with this topic, i know C2 quite well for platformers and stuff but thats new..

    would you mind sharing your updated version ?

  • > > imgur.com/a/ofwBY7b

    > >

    > > getting this error in latest c2 version on testing.

    > >

    > > also shooting and axe slashing wont deal any damage to enemies. is that normal ?

    >

    > Hi, You get error due somewhat broken mouse or look behavior I have this one too and developer maybe fix it sometime later when he is going to port engine to C2. Right now I think this example is just to make stuff render in Wolf 3D manner. Engine is still early in development. So I think you could just use it for rendering walls and objects while the rest you could make yourself like I did. I hope this answers your questions.

    i am not quite good with this topic, i know C2 quite well for platformers and stuff but thats new..

    would you mind sharing your updated version ?

    Can you share your capx?

    Are you available at the Construct discord channel?

  • Hello again,

    I have question about rendering walls. While using debugger I found that engine creates wall blocks in places where player wouldn't even get like if wall is outside of boundaries it still creates blocks. All time there will be four wall block objects on single primitive object so after quick math my game has already over 2000 objects per layout. So question is simple, Is it possible to make wall blocks be only spawned at moment when "ray" hits object and only in place where it hits??? Something similar to original Wolf3D engine.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)