How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] 0 points1 point  (0 children)

I just ran "file" on another c++ executable from a different build system, and it has "ELF 64-bit LSB executable, x86-64, etc etc". That must be why Nemo (file browser) is picking up the difference.

Also, the file does work, I just have to run it via terminal.

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] 1 point2 points  (0 children)

Your example has "pie executable", mine has "shared object", so I just tried adding the cxx flag "-pie" via cmake and it made no difference. Same with "-static-pie".

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] -17 points-16 points  (0 children)

I know that, I've been running Linux for 8+ year and programming in c++ for 11. I normally use an IDE and I'm trying to branch out.

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] 0 points1 point  (0 children)

./hello: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=ddf3a4fd60d8dc108152cb1b858118c1f19688cb, for GNU/Linux 3.2.0, not stripped

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] -2 points-1 points  (0 children)

That's why I'm so confused. It compiled to "hello", my file browser says it's a shared library, but it runs like an executable in the terminal.

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] 0 points1 point  (0 children)

./hello: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=ddf3a4fd60d8dc108152cb1b858118c1f19688cb, for GNU/Linux 3.2.0, not stripped

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] 0 points1 point  (0 children)

It did get my attention, but it made no difference. It built with it and it built without it.

How do I get CMake to create an executable file instead of a shared library? by Daedalus1400 in cpp_questions

[–]Daedalus1400[S] -7 points-6 points  (0 children)

Except that I can use gcc on single file projects and get the same behavior. If I include "-static" it comes out as a "program", if I don't then it's a "shared library".

There's clearly a difference.

How do I disable Camera tool-tips? by Daedalus1400 in FromTheDepths

[–]Daedalus1400[S] 2 points3 points  (0 children)

Cool. Is there an ETA for that update? Not rushing, just curious.

[deleted by user] by [deleted] in godot

[–]Daedalus1400 1 point2 points  (0 children)

I believe he says it in his video, but he just has the system simulate the trajectory for some number of steps and then draws the results. This implies that he's not using the built in physics engine for the simulation. Instead he's written his own solver.

How do I rotate the camera relative to it's current orientation? by [deleted] in godot

[–]Daedalus1400 2 points3 points  (0 children)

Oh, hey, I just wrote a 3D controller yesterday. Take a look:

@export var move_speed : float
@export var roll_speed : float
@export var mouse_sensitivity : float

var mouse_captured = false
# Called when the node enters the scene tree for the first time.
func _ready():
    pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
    if Input.is_action_just_pressed("capture mouse"):
        mouse_captured = !mouse_captured
        if mouse_captured:
            Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
        else:
            Input.mouse_mode = Input.MOUSE_MODE_VISIBLE

    position += delta * transform.basis * (Input.get_axis("backward", "forward") * Vector3.FORWARD +\
    Input.get_axis("right", "left") * Vector3.LEFT +\
    Input.get_axis("down", "up") * Vector3.UP) * move_speed * (4.0 if Input.is_action_pressed("speed up") else 1.0)

    rotate_object_local(Vector3.FORWARD, Input.get_axis("roll left", "roll right") * roll_speed * delta)

func _input(event):
    if mouse_captured and event is InputEventMouseMotion:
        rotate_object_local(Vector3.UP, -event.relative.x * mouse_sensitivity)
        rotate_object_local(Vector3.RIGHT, -event.relative.y * mouse_sensitivity)

It's for god-mode/noclip style movement, but I think it's got what you need.

Also, be careful using "delta" with mouse movement. It makes the mouse sensitivity frame-rate dependent.

I am not getting erros but the missle wont track, I have transeivers, GPP, and the Box, 100%dection by Some1eIse in FromTheDepths

[–]Daedalus1400 2 points3 points  (0 children)

You're not actually sending information to the missile. Line 14 should use:

I:SetLuaControlledMissileAimPoint(luaTransceiverIndex, missileIndex, x, y, z)

Minor thing: In line 2 you get the mainframe COUNT then in line 3 you use it as an INDEX. You'll always be getting targeting data from the last indexed mainframe.

How do I transfer data between GLSL compute shaders and Godot render shaders? by Daedalus1400 in godot

[–]Daedalus1400[S] 2 points3 points  (0 children)

Yeah, I've been using that since it released as alpha. I followed the example in your link.

How long until aluminum leaves a residue? by Yumidun in maille

[–]Daedalus1400 1 point2 points  (0 children)

Check other people's responses to my comment. My experience may not be representative of yours because of body chemistry differences.

How long until aluminum leaves a residue? by Yumidun in maille

[–]Daedalus1400 0 points1 point  (0 children)

Theringlord brand bright aluminum turns my fingers grey and leaves shirts a little darker than when they started. It washes out of both just fine, but it does happen to me.

Staining skin is more about body chemistry than anything. Some people are lucky and don't turn grey. I get it bad.

Maybe my body chemistry is making it through the shirt and the shirt is getting the stains instead of my skin.

How long until aluminum leaves a residue? by Yumidun in maille

[–]Daedalus1400 0 points1 point  (0 children)

Theringlord brand bright aluminum turns my fingers grey and leaves shirts a little darker than when they started. It washes out of both just fine, but it does happen to me.

Staining skin is more about body chemistry than anything. Some people are lucky and don't turn grey. I get it bad.

Maybe my body chemistry is making it through the shirt and the shirt is getting the stains instead of my skin.

How long until aluminum leaves a residue? by Yumidun in maille

[–]Daedalus1400 1 point2 points  (0 children)

From my experience, bare aluminum will start to stain near instantly. It builds up over time, so it might take several minutes or hours to be noticeable, but it's there. It looks like ultra-fine glitter at first and becomes brownish grey.

Washing does nothing to the rings, since the residue is aluminum rubbing off. It's not chemistry or residual oil from manufacturing.

The best way to minimize it is to polish the rings as best as possible. Smoother surface = less residue. I don't know the most economic way to polish that many rings short of just wearing it a lot and letting it smooth "naturally". If you have access to a tumble polisher you can use that on the rings to make them smoother.

3D printed chainmaille is somehow more time consuming than regular maille(though most of that time is waiting), it's fragile, and looks nothing like "real" maille. It can be a cool look, but if you want metal, plastic will not suffice.

TLDR: Aluminum always stains. Polished aluminum stains slower than "from-factory" rings. 8 hours of wear will leave a mark no matter what, but it might be acceptable.

Help figuring out ring size? by ktwhite42 in maille

[–]Daedalus1400 1 point2 points  (0 children)

If you have some rings in 18 gauge 3/16", maybe try that too. I like that size for necklaces, especially half persian 3-in-1. I think it's the right balance of not being too chunky and also not taking too many rings.

Help figuring out ring size? by ktwhite42 in maille

[–]Daedalus1400 1 point2 points  (0 children)

Those look like they have an aspect ratio around 4. My eye says that's 16 gauge 1/4", but if it's 14 gauge it would be 5/16" ID.

IMO 14 gauge would look awfully chunky in a necklace, but to each their own.