Coder Social home page Coder Social logo

delta-studio's Introduction

Ange Yaghi

A.K.A AngeTheGreat

Hi there! You may know me from my YouTube channel AngeTheGreat or perhaps from somewhere else. I am primarily a C++ developer who likes graphics, high performance computing and anything low-level.

delta-studio's People

Contributors

ange-yaghi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delta-studio's Issues

Making sense of dphysics::ParticleSystem::Update

Looking at the code you've got:

    int n = (rand() % (100)) < 100; // Get a random number centered on the mean
    
    for (int i = 0; i < n; i++) {
        Particle *newParticle = m_particles.NewGeneric<Particle, 16>();
        newParticle->m_age = 0.0f;
        newParticle->m_life = ((rand() % 100) / 100.0f) + 5.0f;
        newParticle->m_texture = m_texture;
        newParticle->m_damping = 0.98f;
        newParticle->m_scale = 0.0f;
        newParticle->m_expansionRate = (rand() % 100) / 100.0f;
        newParticle->SetParent(this);
        newParticle->m_velocity = ysMath::LoadVector(float((rand() % 200) - 100), float((rand() % 200) - 100), 0.0f);
        newParticle->m_position = ysMath::Constants::Zero;
        newParticle->m_density = ((rand() % 200 - 100) / 800.0f) + 0.2f;
    }

Not sure if this is intended but the < 100 turns the expression before into a bool, and since % 100 results in values 0-99 you'll have essentially:

int n = 1;
for (int i = 0; i < 1; i++) {

I don't picture that's what you were after, because you could easily have rewritten that as an if...or just:

        Particle *newParticle = m_particles.NewGeneric<Particle, 16>();
        newParticle->m_age = 0.0f;
        newParticle->m_life = ((rand() % 100) / 100.0f) + 5.0f;
        newParticle->m_texture = m_texture;
        newParticle->m_damping = 0.98f;
        newParticle->m_scale = 0.0f;
        newParticle->m_expansionRate = (rand() % 100) / 100.0f;
        newParticle->SetParent(this);
        newParticle->m_velocity = ysMath::LoadVector(float((rand() % 200) - 100), float((rand() % 200) - 100), 0.0f);
        newParticle->m_position = ysMath::Constants::Zero;
        newParticle->m_density = ((rand() % 200 - 100) / 800.0f) + 0.2f;

You also calculated:

float expected = m_rate * timeStep;

Which I'm guessing is roughly how many particles you wanted to spawn in the timeframe, and that you wanted to try to randomly spawn them at different time frames so each update wouldn't be a continuous stream of new particles?

Error when run the code invoke dll file

I run your program but got a system error:

"The code execution cannot proceed because d3dx10d_43.dll was not found. Reinstalling the program may fix this problem"

How can I fix this problem ?
I hope you can make a video about downloading and configuring to run this program, please!!

Thank you for your work!

Sum Input Device

Some devices or setups have multiple mice or keyboards. This can be intentional or the default OEM setup. For example, laptops can have multiple mice and most users assume that all will are interchangeable. Since Delta supports individual mouse and keyboard components, this assumption is not necessarily true leading to some devices working and others not. A composite component that aggregates all user input into one keyboard or mouse would simplify development where only one of each is required.

Assertion Error

Hello, according to your build instructions, I should run project/delta-studio.sln, which does not exist. I ran a cmake . in the root, and it built a sln just fine. Upon running the demos/delta-basic-demo/Debug> delta-basic-demo.exe, I got an error from the Visual C++ runtime saying that on line 37 of yds_breakdown_timer.cpp Expression: channel != nullptr. Not exactly sure what this means but its stopping the program from running correctly.
image_2024-03-27_163031026

LNK1107 - invalid or corrupt file

After getting the files for SDL2, SDL-Image, and the boost files, and getting the CMake project to create the project files, I attempted to build all the projects, and it errored out with LNK1107 - invalid or corrupt file: cannot read at 0x112AB. Is there a specific version I am needing?

EDIT: I should note the error points to the SDL_image.h header file, within the delta-core project, when attempting to build the delta-basic-demo project.

Error while invoking cmake

Tring to run the the project as diescribed brings some erros's

  1. There is no : "project/delta-studio.sln"
  2. Invoking simple cmake command gives error :
c:\dev\my\cpp\delta-studio>cmake  -B ./PrjVisualStudio -G "Visual Studio 17 2022" -A x64
-- Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.30.30705.0
-- The CXX compiler identification is MSVC 19.30.30705.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Error at C:/dev/my/cpp/cmake-3.22.0-rc2-windows-x86_64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/dev/my/cpp/cmake-3.22.0-rc2-windows-x86_64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindSDL2.cmake:198 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:52 (find_package)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.