« first day (2996 days earlier)      last day (2014 days later) » 

12:34 AM
Yeah - figured I should be pro
 
1:13 AM
@JesseDorsey @Josh has reversed the trend :P
 
Hey, I've always been reverse-pro
 
 
14 hours later…
3:12 PM
cmake is giving me an error with this code: pastebin.com/Sf4j25cd
Configuring done
CMake Error at CMakeLists.txt:51 (add_executable):
  Cannot find source file:

    Sandbox.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at CMakeLists.txt:51 (add_executable):
  No SOURCES given to target: Sandbox
my dir structure is :
- CmakeLists.txt
- src
  - gl
  - vk
  - blabla
- lib
  - dlls
    - bar.dll
  - foo.lib
- Sanbox.cpp
Oh wait
it's so dumb ahahah
I've just realized that I wrote "Sanbox" instead of "Sandbox"
 
:D
 
Oopsie :D
 
Behold the power of the rubber duck.
 
sometimes error messages really are useful.
sometimes it's hard to tell when :)
 
I should have gone with an easier name ahahahah :)
 
user4704
3:23 PM
You're still doing a lot of set() calls you really should not do.
 
user4704
All that set(CMAKE_CXX_STANDARD) and such, you should do that with target properties via set_target_properties
 
user4704
Any time you find yourself calling set() with a name that starts with CMAKE, look for a target-specific option instead.
 
user4704
You can also specify multiple items for most commands, like target_link_libraries:
 
user4704
target_link_libraries(Omge glfw3.lib irrKlang.lib vulkan-1.lib)
 
ah yeah
I haven't tried to do that yet
Do you find something else that doesn't look right?
 
user4704
3:26 PM
The set() for the archive paths, etc.
 
user4704
And the use of relative paths to specify the library names versus using find_package() or similar to locate them
 
which version of cmake should i use though? there are so many..
 
user4704
You should have the latest version installed.
 
user4704
You should specify in your lists the oldest version that you can
 
user4704
But I wouldn't go back beyond 3
 
3:30 PM
like the minimum requirements?
 
user4704
Yeah, in cmake_minimum_required you should start with 3.0
 
user4704
And then bump it up when you find a command you want to use that requires a higher version
 
3:44 PM
updated code: pastebin.com/VhT3CUpy
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>Checking Build System
1>CMake does not need to re-run because C:/Users/Gabriele/Desktop/build/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: Omge, Configuration: Debug Win32 ------
2>Building Custom Rule C:/Users/Gabriele/Documents/Github/OMGE/Engine/CMakeLists.txt
2>CMake does not need to re-run because C:/Users/Gabriele/Desktop/build/CMakeFiles/generate.stamp is up-to-date.
2>OGLApplication.cpp
why is there a "glfw3.lib.lib"?
 
user4704
Because you said to link "glfw3.lib" and cmake appended .lib because that's the standard extension for static libraries on Windows.
 
user4704
Since cmake is design to be run in both cross-platform contexts, and contexts where you can swap some targets between static and shared, you don't generally want to specify the extensions of libraries
 
user4704
This is also why you should be using e.g., find_package() to look up the libraries you want
 
user4704
Although that can be complex to set up. For now I'd just remove the extension from the library names
 
but that doesn't seem to be happening with the others
 
user4704
3:51 PM
Right. Because cmake generated that file
 
user4704
yes it is
 
user4704
irklang.lib.lib is in there
 
oh yeah
why am I so blind today
:D
 
user4704
the only one without it is Omge, which you specified as target_link_libraries(... Omge)
 
user4704
(which is correct)
 
3:53 PM
can i specify the stuff in the set_property functions in one line too?
 
user4704
No, set_property() only sets one property (but that property can have multiple values, so you can do that)
 
user4704
set_target_properties can set multiple properties in one call though.
 
like set_target_properties(p1, p2, p3, VALUES v1, v2, v3) ? (pseudo code)
 
user4704
No. Look at the documentation for the function.
 
user4704
"cmake <function name>" into any reasonable search engine will almost always link you the proper page
 
4:03 PM
so set_target_properties sets one property for one target?
 
user4704
set_target_properties sets N properties for N targets.
 
user4704
set_target_properties(MyTarget PROPERTIES property1 value1 property2 value2) etc
 
oh okay
that's convenient :)
 
user4704
set_target_properties(target1 target2 PROPERTIES property1 value1)
 
user4704
set_target_properties(target1 target2 PROPERTIES property1 value1 property2 value2)
 
user4704
4:07 PM
and so on
 
how do you distinguis between property one and property two?
 
user4704
whitespace
 
user4704
the first thing after PROPERTIES is the name of the first property. The next thing, separated by whitespace, is the value of that property.
 
user4704
The next thing, separated by whitespace, is the name of the next property. etc
 
4:09 PM
I'm sorry, by that i meant to say "so the properties and values that you specify for tg1 and tg2 get set for both targets, right?"
 
user4704
Yes.
 
user4704
the properties you specify are set for all targets you specify
 
In ten minutes in python I made what took me around 3 days to make in C :/
 
user4704
Unsurprising, really.
 
user92578
4:23 PM
Especially IIRC you are really new to C?
 
I've done around 12 hours lesson on it
just if I want to have the first letter of a string in python:
a="d"
print(a[0])
but c lol the strings are hard
 
user92578
not in that use case
 
oh yeah char
but y'know
 
user92578
const char a[] = "d"; printf(a[0]);
 
yep
lists are also simpler
I do like c's for loops however
 
user92578
4:28 PM
most stuff in C is a pain
 
user92578
you might want to look into C++
 
5:12 PM
scanf ARGH
fscanf AARRGGHH
@AlexandreVaillancourt how should we handle this
0
Q: Use a different language for engine and game

ShadowJust a quick question that I haven't been able to find an answer to, I am creating an engine for a game, I have begin making the engine in C++ but I want to make the game in java. My question is, is there a way to maker my game in a different language on a separate "layer"?

it's got an answer link to SO in the comments
 
user4704
5:27 PM
I just made an answer based on the some stuff in the link and a few quick tutorial googles
 
awesome
 
there is a problem with the relative paths of the libraries
apparently visual studio can't link them to the sandbox project. Am I doing something wrong?
 
I have 2 input values that are used to generate 2 output values. I want to find the 2 input values that would be the closest to 2 precise output values. I think it would be easy to do that with mathlab, but I don't have access to it. Any other options?
 
wolfram alpha?
that's really a question
i have no idea if it would help
 
what is the function?
or is it a black box
 
  const double suspensionErp = dt * wheelSpring / ( dt * wheelSpring + wheelDamping );
  const double suspensionCfm = 1.0              / ( dt * wheelSpring + wheelDamping );
@Almo I can give it a try..!
 
6:11 PM
:)
 
It has defaults for suspensionErp and suspensionCfm, and I'm trying to figure out what wheelSpring and wheelDamping I can give it to get the defaults.
(It being the physics engine that we use, i.e. ODE.)
 
can you not solve that equation for the other variables
 
we need a dark mode :D
 
@Jimmy Hmm, maybe if I wrote that down on paper I could get something better?
 
user4704
6:16 PM
@GabrieleVierti Specifying relative paths, probably
 
let W = 1 / suspensionCfm (this is your dt * spring + damping). then you have a target value for W, and w is also suspensionErp / (dt * wheelSpring)
so that gives you wheelSpring
 
@Jimmy I think I see where you're going. My brain is rusty for that kind of stuf.
stuff
 
@Josh I'll try that out, thanks a lot Josh.
 
@AlexandreVaillancourt here you go: ideone.com/SuRLLl
edit and fill in your numbers
 
6:38 PM
So.
 
La.
 
Anyone got any tips on how to get rid of peter panning without introducing self shading all over the place?
 
I don't know what "peter panning" is
 
When an item appears to be floating because the shadow it casts does not match up with the base of the item.
I seem to trade one shadow artfact for another no matter what I try.
 
@Jimmy hey thanks!!
 
6:57 PM
@GabrieleVierti Heh I don't think it's on the top list of SE, but I guess you can hack browser extension that does this for you :P
 
@AlexandreVaillancourt that's exactly what i did hahahahah :D
 
@GabrieleVierti :)
 
 
1 hour later…
8:34 PM
@PintOfMilk I spent months studying C, under Stratford Career Institute. 12 hours won't cut it to learn useful C.
 
9:33 PM
C's pretty hard for sure.
 
 
2 hours later…
11:06 PM
Hi guys, so I was looking for documentation/tutorials on how to do a loading screen in UE4 and all I got was a bunch of info on how to use stream levels and mask the load/unload of levels. This is not what I want, I'm trying to go for a traditional approach, main menu -> user selects the mission -> loading screen -> whole map pops up and after the entire mission is completed -> loading scree -> back to main menu. Where can I find info for this type of implementation?
 
11:20 PM
Ask a question let people get them fake internet points!
The fastest way I can think of doing this though, is to pop up your loading image while the level is being loaded in.
 

« first day (2996 days earlier)      last day (2014 days later) »