Page 180 of 182 FirstFirst ... 80130170178179180181182 LastLast
Results 3,581 to 3,600 of 3633
  1. #3581
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804


    update

    Smooth , raise and lower terrain code working

    Not cleaned up or put into a function caller or a handtool yet*
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  2. #3582
    I guess the only way to make a tunnel would be to place a pree made one with the cursor.But you have not made that.Are you planning to?



  3. #3583
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    There will be roads trees / bushes and buildings and wallkits at first, after the demo may open it up a bit.
    Highway kit, etc

    Edit: This is before feathering which I already added
    (kdtree gives distance from hitpoint in the data :3)

    Last edited by BluePrintRandom; 11-Mar-17 at 14:55.
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  4. #3584
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804


    Going to need some help with node materials, as right now I am kinda "overlaying" materials instead of mixing,

    edit: - Kinda working - Going to need to make the opacity adjustable / feather amount.

    Last edited by BluePrintRandom; 12-Mar-17 at 02:48.
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  5. #3585
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    Terrain editor working, trying to get BPPlayer to work for streaming but I am a little lost,

    If anyone who understands how to stream game data in and out of .block files I could use the help,
    (freeing up ram and logic and un-bloating scene.objects )
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  6. #3586
    Member Nicholas_A's Avatar
    Join Date
    Oct 2014
    Location
    own.worldPosition
    Posts
    797
    You should have a thing for your terrain editor that is like the proportional edit for the mesh in blender.
    My YouTube channel | My Blendswap profile | Current Project: Infinite Ammo

    I sell custom logos for $5 (among other things). Check them out!



  7. #3587
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    I can use distance returned by points in radius and use the distance to affect strength of painting or even lift / lower

    Could flip the effect and raise crater edges

    My issue now is preserving in game edited gameObjects in a grid of .block files initially(world building)

    and on the fly( loading terrain tiles and their game objects as well as unloading them and saving changes)

    This allows Wysiwyg as well as eventually multiplayer could be added :3
    Last edited by BluePrintRandom; 15-Mar-17 at 19:26.
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  8. #3588
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804

    Eye candy update
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  9. #3589
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    Ok, so Bplayer patch in upbge does not seem to help with streaming KX_GameObjects to and from disk,

    I have a new plan

    Frame 0 add all tiles, build very large kdtree, use noise to set initial terrain state / vertex splat map noise
    /deform Heights and recalculate normals, Reinstance physics meshes.

    Save data to array, load tiles in a radius of "avatar" and rebuild KDtree when moving, or when editing
    Use

    World tree = intially built to apply noise etc to terrain

    MacroTree = kdtree that loads in terrain tiles and "building roots" that load in /unload their own child objects (building is made of many small parts) (built once)

    Microtree = kdtree for editing meshes in radius in realtime
    (built constantly)


    After editing
    ____________

    Then this data will be stored in arrays, and saved (not gameobjects)
    To disk, when loading, the macrotree is rebuilt and as tiles in a radius load in, their data is grabbed from a array and they deform in realtime/set normal and vertex color and Reinstance physics meshes,

    Since each tile is small and the microtree is small it should be pretty fast.

    Microtree is rebuilt when tiles load out(back to array) or in(back into tree)

    Now we have realtime terrain deformation if we wish in wrectified as well :3


    So we edit the world map, place game objects, and it's basically like playing the fallout settlement editor with simcity like terrain editing powers.

    We place empties containing enemy spawning logic, buttons, instant recycling bank vending machines, story even strips etc.

    In game you hit save, and a seperate copy of blender can open the data to test,

    So you can itterate design inside the editor and game
    Last edited by BluePrintRandom; 19-Mar-17 at 14:55.
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  10. #3590
    Love to see it.



  11. #3591
    Member Grenzer's Avatar
    Join Date
    Feb 2015
    Location
    Northeast Appalachia
    Posts
    308
    I really like the look of your terrain tools. I tried making terrain using Blenders default Sculpt tools and ended up with a mesh which was not so good for games. (Very high poly and not optimized)

    You mentioned terrain deformation - how are you going to update the physics on the terrain after deform? Aren't the collision shapes set on game start and can't be changed?
    I'm 18 years old, a pilot, a indie game dev, and - of course - an avid BGE user!



  12. #3592
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    In upbge reinstancePhysicMesh() has a third argument, make new physics mesh unique to object* true/false that is optional, set it to true*

    https://pythonapi.upbge.org/bge.type...ncePhysicsMesh
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  13. #3593
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804


    There we are
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  14. #3594
    Is it supposed to not add terrain in certain directions.



  15. #3595
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  16. #3596
    Member Nicholas_A's Avatar
    Join Date
    Oct 2014
    Location
    own.worldPosition
    Posts
    797
    You should also add tiles below physics objects that are away from the player.
    My YouTube channel | My Blendswap profile | Current Project: Infinite Ammo

    I sell custom logos for $5 (among other things). Check them out!



  17. #3597
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    Originally Posted by Nicholas_A View Post
    You should also add tiles below physics objects that are away from the player.
    upbge has suspendPhysics()

    I will be using the macrotree to load tiles in and out, and a system to populate the tiles with the game objects they own as well* / unpopulate them back to disk.


    (the world does not move / exist when you are not near it*)

    at least for the initial wrectified

    I may approximate enemy unit movements by having them plopped back at a random point in their local navigation map rather then the pos / rot they were unloaded in*
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  18. #3598
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804


    ok !

    Save / load / edit again working!

    currently just loads /saves/MapDict1.txt

    however I can add a save path / load path editable text object in game


    Next is onto placing gameObjects and storing them in dictionary local to the tile that owns them
    and recalling this data on spawn / saving changes on loadOut

    Edit: noticed some lag (its actually hard disk lag) I have a slow disk speed, and windows 10 is always so hungry.

    Its smooth on my end and buttery especially when not casting*
    Last edited by BluePrintRandom; 20-Mar-17 at 17:12.
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  19. #3599
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    added Xbox controller support, however it relies on LordLoki's SDL2 update, so I had to move into UPBGE for the actor proxy demo, but the IK is still bad,

    going to try and get on Irc and see about a new build with the IK_fix branch merged.



    Not all buttons are supported yet and I will need to make a 'Switch' so when you are aiming the gun, the xbox right stick changes the players x and y for mouse aim, otherwise I will have to move the mouse position using the axis values.
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



  20. #3600
    Member BluePrintRandom's Avatar
    Join Date
    Jul 2008
    Location
    NoCal Usa
    Posts
    17,804
    OK- xbox mouseaim and all buttons working fine, next is to have the Axis values move the mouse when the menu is being used.



    I am going to need to get a rechargeable xbox power pack :|
    Break it and remake it - Wrectified
    If you cut off a head, the hydra grows back two.
    "headless upbge"



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •