Jump to content

Charrua

Developers
  • Posts

    230
  • Joined

  • Last visited

Posts posted by Charrua

  1. I'm doing my first steps on ubuntu/leadweks

    To launch leadwerks editor, i'm double clicking on the Steam icon on my desktop, then selecting on my Steam Library and launching Leadwerks from there. I guess, (for sure) that there is a way of launching the editor without the need of steam (without internet connection for example), isn't it?

    How can i do that?

    Thank's

    Juan

  2. I'm new here. in linux

    I started a marble, project, publish it as standalone, and run it by double clicking on the marble file inside the marble folder on the desktop, no problem.

    I started a "tutorial samples" project, write my own app.h and app.cpp, did not change main.cpp

    I run it form the editor, and from code blocks without any problem.

    I publish the project as stand alone and when i double click the pj01 file on the pj01 folder on the desktop, nothing happens, if I right click and select run, same result, then i open a terminal and when i type ./pj01 and hit enter the error message appears.

    Any advise?

    thank's

    Juan

  3. Hi

    I need to execute a stand alone leadwerks app at startup and after quitting the app system should shut-down.

    My intention is that the user just only has the capability of turning on the computer, use my app and when finished, the system automatically shut down.

    Is there an an easy way of doing this, using a kind of autoexec.bat old dos like file?

    Juan

  4. I was having troubles mounting my windows drives on ubuntu.

    Windows 8 and 10 defaults to hibernate instead of shut down.

    So, for ubuntu to mount the drives instead of Shut Down I have to Restart (which do not hibernate).

    Going hibernate does startup faster, but drives are not mounted from ubuntu.

     

    Another solution is to "change what the power button do" in "power options" under "hardware and sound" in the "control panel"

    unchek the "turn on fast startup (recommended)" option.

     

    Now, i simple click on the drive icon and the drive is mounted :)

     

    Juan

     

     

  5. thank's

    works ok, and now code blocks builds the project

    i'm having an issue with code blocks, in which when I invoke a dialog it shows empty and can not quit from it!

    happens that on a second try (after restarting the app) the same dialog shows correctly.. any ideas?

     

    for the record:

    ok, after creating a filename.sh with a text editor..

    on a terminal, chmod +x filename.sh

    to change it's attributes to executable, then on a terminal

    ./filename.sh
     

  6. thank's I'll try

    translated to a no linux man...

    is a text file when i create it with a text editor, i have to change it's attributes to make it executable.. as i remember did a couple of times long ago, have to look how.. and then run it, just typing it's name from a terminal.. isn't it?

  7. Hi

    i launched leadwerks from steam, then create a new "tutorial samples" project called pj01

    then from code blocks i open the pj01.cbp project, and when i try to build the project

    the line #1180 of glew.h: "include <GL/glu.h>"

    throws the error.... fatal error: GL\glu.h : no such file or directory

     

    is it something i miss or related to the new release?

    do i have to install something else other than the default instalation does?

    please note that this is my first try of leadwerks and code blocks on ubuntu, so have some patience with me :)

     

    thank's in advance

    Juan

  8. @Josh, where was this photo taken?

    @Hayden, sorry to know about your lost photos. I have some climb skills, but limited to ladder, well mounted ones with walls and preferably with railing on both sides :)

    this is the most I have climb, just to see that there was only the beginning of a long path, that i didn't walk... ok i was affraid, very, but i live to tell the story.

     

    osorno%202.jpg

     

    this is at 1200 meters almost the half of the 2600 the Osorno has (south of Chile), this other picture was taken from the end of the previous path:

     

    osorno%204.jpg

     

    if you look carefully, will see a couple of people walking, here a zoomed and 1:1 scale shoot

    osorno%20to%20climb.jpg

    • Upvote 2
  9. A photo freezes a moment, tell a story among other things.

    It may or may not be technically correct or taken with a good camera, may be not in focus etc, but still it is a good photo for us, for some reason.

     

    I has taken lots of photos over the years, most of them just says "I was here", many times, because our travel agenda we are in some place not in the right time: summer instead of winter, at noon instead of early in the morning, it's cloudy or rainy.. etc, but we still take a shoot.

     

    Many times we have a small window time to be on a place and the photo we took is the one we could not the one we would liked to.

     

    If you enjoy taking photos, you know what I'm talking about, if not, this post is boring.

     

    I choose a small amount of photos to start this thread in the aim of that someone else here, continue this thread with some moments, stories and the like photos give us.

     

    So..., was the year 2002, I was in a park waiting to start a walking with a guide and a group of people, nice opportunity to take a photo, so i told my ladies stay there and look at me, make focus, and in the moment I fully pressed the shutter button, the guide speaks loud, and the attentions goes to him, and my photo simply gets great, one of the "more natural expression I got from my children"

     

    2002-10%20Parque%20de%20vacaciones%202.JPG

     

     

    A couple of years from that day, in 2004 at the beach, a natural pool was formed in which some crabs where walking. That surprise moment was frozen in the following picture.

     

    2004-1%20vacaciones%202.JPG

     

    Last year, on vacation in Brazil, Gramado, after 1000km of travel, the first morning was a fog all over the place, we go to walk and found an artificial lake with a fountain which was not working at this early hours of the day and take a "I was here photo" but then I found a spiderweb on the fence, and this saves my day

     

     

     

    parque%20ritcher%202.jpg

     

    at night, reviewing the photos I discover that in a 1:1 scale, the drops got an inverted view of the background

     

    parque%20ritcher%203.jpg

     

     

    at the end of 2016, on vacation again, me and my wife goes to south of Argentina and Chile. After a few days there we got near the Lanin volcano, was cloudy and there was strong winds that day so it refuses to show us, "I was there" and this is the photo

     

    lanin%204.jpg

    a closer view:

    lanin%203.jpg

     

    but, 4 day earlier, when on the road my wife took this one from inside our car

     

    lanin%201.jpg

     

    at 1:1 scale:

     

    lanin%202.jpg

     

    in that moment i said to my wife, this is one of the places will visit and will see it better...

     

     

    So, any one else has a story to tell, or a moment to share?

     

    Juan

    • Upvote 3
  10. thank's for your likes and comments

     

    nature is overwhelming and any thing about it has a big and nice impact on us.

     

    sun light when eclipse reach 60% (no more than that here) was somewhat the same as first morning lights or late in the evening, but at midday and without a cloud in the sky :)

     

    there is always an opportunity to see something different without waste a cent!

  11. This morning, 10AM thorough 12AM a partial solar eclipse was seen on my area, a total one more on the south of America.

    So I take my camera, place a variable ND filter (at maximum) and start to take some shoots

     

    perhaps it may be of interest of someone else here.

     

    _DSC2526_00001.jpg

     

    _DSC2591_00005.jpg

     

     

    _DSC2671_00009.jpg

     

    _DSC2724_00012.jpg

     

    in the meantime, sunlight thorough holes looks so interesting, here some of the floor in my backyard.

     

    _DSC2661.jpg

     

    _DSC2664.jpg

     

    a paper with a hole...

     

    20170226_112850.jpg

     

    And after eclipse light through holes got normal again

     

    _DSC2739.jpg

     

    One of my sister, try to take a photo with her cellphone, using a sun glass in front of it, and take an interesting one, on the glass a reflection shows the eclipse, have to admit that this unintentional photo is better than mines!

     

    IMG-20170226-WA0017.jpg

     

    Me and my tripod/camera, je je, this is not of interest, but i can´t resist.

    (Here is summer, about 33 degrees Celsius)

    I was cutting the grass so my clothes are very casual, i do not use a tuxedo for that kind of labors.

     

    20170226_102743.jpg

     

    and the lemon tree that gives this nice half-moon-shaped shadows

    _DSC2742.jpg

     

    Juan

    • Upvote 11
  12. Hi

     

    I'm about to try ubuntu and leadwerks on it

    I'll use a new computer probably an I5 or I7 and need some advice about:

     

    * which ubuntu version is currently suported by leadwerks

    * a nice graphic card, nvidia perhaps? that you may know is working ok with ubuntu+leadwerks

    nothing high end about graphics, i mean, not a 1000 dolars one :) which requires a expensive power supply and all the etceteras a high end pc should need.

     

    and any other tips you may haver for me to start

     

    i had a laptop and installed on it an ubuntu 14 and reach leadwerks work on it last year, but things of destiny i have to re install factory defaults on it..

    now i like to have a linux machine on its own so i have some experience... but little.. very little

     

    thank's in advance

     

    Juan

  13. You might be able to do this in the collision callback of the belt. When a collision occurs, try adding a force or adjusting the velocity of the colliding object.

     

    i'm basically doing it, but didn't figure out how to "wake up" entities over the belt when at rest.

     

    this is my current belt's collision code:

     

    function Script:Collision(entity, position, normal, speed)
    --self.stateValue may be -1:backward, 0: stopped, 1:forward
    --self.speed is a factor to adjust belt speed
    if self.stateValue~=0 then
     rot=self.entity:GetRotation(true) --belt orientation
     vel=Vec3(0,0,0)
     vel.x = Math:Sin(rot.y)*self.stateValue*self.speed --get x,y components of orientation
     vel.z = Math:Cos(rot.y)*self.stateValue*self.speed
     entity:SetVelocity(vel) --applya velocity to entities that collide with the belt
    end
    end
    

     

    guess now has some other ideas, apply a 0,0,0 force to wake up never cross my mind and the invisible trrigger thing.. have to give it a try also.. as always it's a matter of find a nice solution doing some tricks in between to get good results with few resources..

     

    thanks again

     

    Juan

    • Upvote 1
  14. thxs

     

    i'm implementing a "conveyer belt" (kind of) and it hast 3 states: forward, backward and stop

    while in forward or backward any entity colliding with it is moved and as it is moved it remains colliding and so the belt woks as spected.

    If i stop motion, then.. entities stop colliding the belt and then, when i need to restart movement, i need to know which entities remains over it.

    Some entities may finish colliding because they reach the end or slide outside the belt (for any reason) so having a historic of entities collided (recently) is not a bad idea but isn't sure that this list is will be correct all the time.

     

    One of my ideas was use an aabb and is still the one i guess will use but before i needed to ask .. just in case :)

     

    here what i'm doing currently:

    (the other cars will have other uses, forklift and the like)

    having some spare time so i decided to enjoy a little.

     

    https://dl.dropboxusercontent.com/u/78894295/leadwerks/conveyor%20belt%202.mp4

     

    https://dl.dropboxusercontent.com/u/78894295/leadwerks/conveyor%20belt.mp4

     

    @gamecreator, i was posting as you did your, the list is not a bad idea, but there will be no garanties, i mean, a box should be pushed away or lifted from one belt to other place and will, perhaps, remains in a list...

     

     

    Juan

  15. is there a function to get a list of entities that are above another, in contact, physically speaking.

     

    When an entity collides another a collision is detected an i can test for collision but after a while stop bouncing and collision stops also. What i need is to know which entities remains in contact.

     

    I can do a aabb test or keep track of entities that has been collided.. but all has its pros and cons, is there a physics way of testing entities actually in contact?

     

    thanks

     

    Juan

  16. if you are working with lua, there is an already made function and you can use it in any lua script of your own

     

    just include it, declare a table variable to store the list of entities that "GetEntityNeighbors" function returns

     

    --add this line to include the function
    import "Scripts/Functions/GetEntityNeighbors.lua"
    --delcare a table to store neighbors
    Script.EntitiesInAABB = {}
    then in the update world yo may
    function Script:UpdateWorld()
       EntitiesInAABB = GetEntityNeighbors(self.entity,4,true)  -- 4 means look 4 Leadwerks unit ahead, back left, right
       --self.entty is at the center of a box of you desired measure
       -- the second parameter "true" in my example dictates that only entities with a script attached to them will be included (it's your choice)
      --then you may do something like
      for key,EntInAABB in pairs(EntitiesInAABB) do
      if type(EntInAABB.script.Open)=="function" then
    	  EntInAABB.script:Open() --if an antity inside the box has a function called "Open" then i invoke it, just as example
      end
       end
    
      ....
      .... rest of your updateworld
    end
    

     

    it should be unnecessary to check the surrounding area each frame, you may check it once in a second for example, here a more elaborated example, that includes a variable RadarRange that you may set in the editor and checks for neighbors once a second:

     

    import "Scripts/Functions/GetEntityNeighbors.lua"
    Script.EntitiesInAABB = {}
    Script.RadarRange = 5 --float "Radar Range"
    Script.AcumTime = 0
    function Script:UpdateWorld()
    self.AcumTime = self.AcumTime + Time:GetSpeed()
    if self.AcumTime>100 then
     self.AcumTime=0
     --look for neighbors once a second instead of every frame
     EntitiesInAABB = GetEntityNeighbors(self.entity,self.RadarRange,true)
     for key,EntInAABB in pairs(EntitiesInAABB) do
      if type(EntInAABB.script.Open)=="function" then
       EntInAABB.script:Open()
      end
     end
    end
    
    ...
    ... rest of your update world
    ...
    end
    

     

    Juan

×
×
  • Create New...