Jump to content

Josh

Staff
  • Content Count

    16,090
  • Joined

  • Last visited

Posts posted by Josh


  1. If you open up the FPSPlayer script you can see that the player itself will be passed into the Use() function:

    --Use the object, whatever it may be
    usableentity.script:Use(self)

    So you could add a value directly onto the player in your switch function:

    function Script:Use(player)
        player.disablemove = true
        if ShowedImage=="Yes" then
            ShowedImage="No"
        else
            ShowedImage="Yes"
        end
    end

    And then disable the player input in the FPSPlayer script if this value is set to true:

    if self.disablemove ~= true then
    	if window:KeyDown(Key.W) then self.input[1]=self.input[1]+1 end
    	if window:KeyDown(Key.S) then self.input[1]=self.input[1]-1 end
    	if window:KeyDown(Key.D) then self.input[0]=self.input[0]+1 end
    	if window:KeyDown(Key.A) then self.input[0]=self.input[0]-1 end
    end

     

    • Like 1
    • Thanks 1

  2. 7 minutes ago, Russell said:

    I'm thinking about create a Global variable like "ReadingSomething"  and a function on FPSPlayer.lua for change movementspeed when we are reading or not.

    But i don't know how develop this with code, i'm looking over the net for examples, and not able to find anything. Anyway i'm looking the code of the rest *.LUA on Leadwerks to learn the syntax to do this...

    You would probably just want to add a variable to the player script like this:
    self.disableMovement = true

    And then add an if statement around the code that handles player input..


  3. I quit the web cold-turkey, outside of this website and here is what I notice:

    • Movies, music, and games, in physical formats, are very interesting again, like they used to be. I discovered an interesting mod for S.T.A.L.K.E.R. by browsing through game DVDs. I never would have found it looking online because I don't want to search through uncurated piles of trash.
    • The idea of subscribing to a newspaper (Wall St. Journal) or magazine is actually pretty appealing. It gives you a bit of intellectual stimulation in just the right dosage.
    • I have a much much better mood every day.

    Digital content delivered over the web results in an overload of information, combined with a race to the bottom in terms of quality. You can see this happening in real-time on Steam. Tool didn't even bother to release a real CD with their recent album, and the album is also really sub-optimal quality. The whole "streaming" thing seems ridiculous to me. Instead of exchanging money for a product, you are giving money so that a computer can be set up somewhere that will dynamically deliver the correct bits to your computer, while their legal team maintains licensing agreements with the content owner, until the day comes that one of those things stops happening.

    Yes, just about anything you want offline can be found online, but it's going to be a crappy version of what you could get offline. Streaming movies always freeze up, the sound is bad quality, you might have some weird subtitles you can't turn off. The whole experience is like looking at everything through really dirty goggles. Everything feels poorly put together like it might fall apart at any moment or be taken away.

    So although physical media has / is taking a huge hit, it seems like online content is on really a self-destructive path. I would not be surprised if the web turns into a garbage bin of mountains of data no one ever looks at, and owners just start pulling the plug on a lot of stuff. I don't know, but there is definitely something strange happening. I feel like everything in the consumer space has been exhausted and something big is going to change.

    It takes a bit of discipline to get through the first couple of weeks but it is so much better. I have the same feeling now that I have not had since the late 1990s. I can't force the rest of the world to do the same, but for my own life I feel like life offline is 1000% better.

    • Like 1

  4. In LE4 use Entity->Release(); In LE5 just set the variable to NULL.

    Frustum and occlusion culling are built-in.

    Surfaces can be cleared and re-built, but faces cannot be removed in LE4. In LE5 you can modify the vertex and indice arrays and then call Mesh->Finalize().

    • Like 1
    • Thanks 1

  5. Technically, 4,294,967,295 vertices is the max. But there will be a limit lower than that depending on your hardware.

    Very roughly I would aim for no more than 10,000-20,000 polys for any particular model.

    • Like 1

  6. 23 minutes ago, 💎Yue💎 said:

    The world is in decline, whether we are aware of it or not, the internet is its reflection.

    I don’t mean to pick on you in particular but this is the sort of thing I mean. It sounds like the things you read online are making you unhappy and affecting your life in a negative way.

    • Like 1

  7. A friend recently told me they deleted all their social and forum accounts for no particular reason. They just didn't want to be online anymore. It got me thinking.

    The common view of the Internet is that it is a digital mirror of the real world, and the sum of all human knowledge. This is not true.

    In the late 1990's Internet message boards were a novel thing. You could discuss various interests online and it was interesting and organic. Now most interaction has been channeled into a few big platforms, and I don't think that is the case today, and it has not been for many years. Outside of some technical topics, I think the Internet has become:

    • Corporate and government(s) astroturfing, probably a great deal of which is generated by AI
    • MLM marketers and cult leaders. (The former is monetized and the latter is not.)
    • Mentally ill compulsives posting variations of the same joke on YouTube over and over.

    When I think about the intelligent wise people I know in my life, none of them ever write anything online, and I never find their good advice online, about anything. Instead, I see various cults for health, fitness, money, politics, business, every aspect of life you can imagine, and all of it is very bad advice that has nothing to do with reality. For example, for something as simple as food, there is a cult for eating meat. There is also a cult for not eating meat. Humans throughout history have always had some vulnerability to this type of thinking, but it seems like these things are arising faster than ever before in history, and it is totally drowning out normal organic conversations. One sign is if they have their own made-up terms or acronyms for anything, it is probably all bullshit.

    Quote

    Those who know don't talk. Those who talk don't know.

    The only sources of information I have ever found useful in my life are:

    • Other people I have conversations with in real life.
    • My own intuition.
    • Some books.

    I am saying we are going back to a time before the Internet, because the only people spouting their ideas are the mentally ill. In reality, we have probably been there for 5-10 years. Outside of technical information or booking a hotel, I think it is time to turn off the Internet as much as you can. Now is a good time to read some books, pray or meditate, and pay attention to the people around you. Avoid people who seem like they are getting sucked into some kind of ideological framework or health fad of any kind, or at least call them out on it. I have seen this in several people I know in my life.  Having a head full of nonsense is worse than ignorance. By reading the content that is on the Internet, you are not becoming more informed. You are becoming more neurotic.

    • Like 1

  8. You could perform your mesh algorithm on another thread. You can’t create the Leadwerks mesh on another thread but you can get all the daya for the mesh ready.

×
×
  • Create New...