Jump to content

diedir

Developers
  • Posts

    258
  • Joined

  • Last visited

Posts posted by diedir

  1. So after trying a lot:

    i made a terrain 2048 *2048 in editor and tried to import a

    *.r16 file : the file is not present (hidden) in the dialog box explorer

    *.raw file : file present in explorer dialog but result in failed to load in editor.

    then with code (lua) no problem for each file: it loads  (though i think better result with r16 one)

    don't know why in dialog explorer r16 is not seen

    , so i put my file here (needed to rename extension because no allowed to upload *.r16 ), if you want to try (not a great elevation from 5m to 45m)

     

    Total_G_HM.r16.txt

  2. ok all is ok now,

    uninstalled the 0.9 version,

    installed the dev 0.91 / 300 and all is well displayed,

    i think i had a mix of shader version,

    because previous install was not straight one, needed to download couple of times before finishing proper install.

    so all is good now

    thank you all

    • Like 2
  3. Hello Josh,

    after toying in Ultra editor a bit, i need some answers if possible:

    • Viewport layout : not remembering the last setting
    • Zoom in and out commands not working on my side (= and -)
    • Zoom limiting at 6% minimum and 5751% max (?)
    • Textures on terrain: no UV Tiling ?
    • Box object not showing dimensions (x,y,z) only scaling for new dimensions ?
    • Is it possible to add a function for viewing (zooming) all objects in a scene or one (entire) object only ?

    Thank you for your great job because i am not talking about all that is working good !

    • Thanks 1
  4. Ok i got it,

    simply by positionning the sprite in 2D coords like -400,300

    x negative on the left side, x positve on the right and y positive on top side and negative in the bottom

    0,0 is the center of the window

    thank you Reepblue

  5. Well thank you for your time but the sprite was already in the center of the window,

    the problem is that i can't place it where i wanted (eg: at top left or top right... etc)

    still searching

     

  6. Hello, me again.. i try to position a sprite created for head up display over a scene, but can't move the display where i want

    here the code i used :

    --Get the displays
    local displays = GetDisplays()
    
    --Create window
    local window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[1])
    
    --Create framebuffer
    local framebuffer = CreateFramebuffer(window)
    
    --Create world
    local world = CreateWorld()
    
    --env map
    local specmap = LoadTexture("./Materials/Environment/Default/specular.dds")
    local diffmap = LoadTexture("./Materials/Environment/Default/diffuse.dds")
    world:SetEnvironmentMap(specmap, ENVIRONMENTMAP_BACKGROUND)
    world:SetEnvironmentMap(specmap, ENVIRONMENTMAP_SPECULAR)
    world:SetEnvironmentMap(diffmap, ENVIRONMENTMAP_DIFFUSE)
    
    --[[load map
    local mapname = "Maps/scene1.ultra"
    local cl = CommandLine()
    if type(cl["map"]) == "string" then mapname = cl["map"] end
    local scene = LoadMap(world, mapname)
    --]]
    
    --Create light
    local light = CreateBoxLight(world)
    light:SetRange(-10, 10)
    light:SetArea(15, 15)
    light:SetRotation(45, 35, 0)
    light:SetColor(2)
    
    --Load a font
    local font = LoadFont("Fonts/arial.ttf")
    local fontsize = 36
    
    -- Create sprite
    local sprite = CreateSprite(world, font,"HEY YOU !",fontsize) 
    sprite:SetColor(1, 1, 1, 1)
    sprite:SetPosition(0,-50, 0)
    
    -- Create a camera
    local camera = CreateCamera(world,PROJECTION_PERSPECTIVE)
    camera:SetClearColor(0.125)
    camera:SetPosition(0, 5, 0)
    
    --Create second camera
    local cam2 = CreateCamera(world,PROJECTION_ORTHOGRAPHIC)
    cam2:SetPosition(0, 0, 0)
    cam2:SetClearMode(CLEAR_DEPTH)
    
    --Camera controls to look around
    require 'Components/Player/CameraControls'
    camera:AddComponent(CameraControls)
    
    --main loop
    while not window:KeyDown(KEY_ESCAPE) do 
        world:Update()
        world:Render(framebuffer)
    end

    Thank you for helping

  7. sorry i tried with scene and error occured:

    local scene = LoadMap(world, mapname)
    for x=0,scene:CountEntities()-1 do
        local entity = scene:GetEntity(x)
       local name = entity:GetKeyValue("name") 
       if name == "cube1" then.....etc

     

×
×
  • Create New...