Coder Social home page Coder Social logo

Comments (10)

MadDeCoDeR avatar MadDeCoDeR commented on May 25, 2024

To be honest I am as clueless as you are here. I don't know exactly how both flashlights show their lights, but by the look of it, it seems that the old flashlight has a limited illumination distance.

from classic-rbdoom-3-bfg.

mjsonofharry avatar mjsonofharry commented on May 25, 2024

I'm wondering, were you able to replicate the problem? If not, then I was going to try installing everything from scratch on a completely different machine.

from classic-rbdoom-3-bfg.

MadDeCoDeR avatar MadDeCoDeR commented on May 25, 2024

I did, but the illumination distance was further than this

from classic-rbdoom-3-bfg.

mjsonofharry avatar mjsonofharry commented on May 25, 2024

Try using a weapon_flashlight.def with modified values for flashTarget, flashUp, and flashRight. For example:

	"flashTarget"				"0 0 60000"
	"flashUp"				"0 30000 0"
	"flashRight"				"-30000 0 0"

Increasing flashTarget has the effect of narrowing the beam while also increasing its range. This seems to either circumvent or control the distance limit we've been observing.

However, it also turns the light into a pinhole. Thus we want to increase flashUp and flashRight as well, so that we get a larger diameter for the light beam.

I am not sure what combination of values would result in a light beam similar to the unmodified one. Also, I don't know exactly how much we need to increase flashTarget in order to cover all plausible viewing distances in all of the game's environments.

from classic-rbdoom-3-bfg.

mjsonofharry avatar mjsonofharry commented on May 25, 2024

Sadly, increasing flashTarget to such a huge value also has the effect of minimizing or even eliminating the flashlight's effect on nearby objects. I wonder if there is a good middle ground.

Edit: Setting flashTarget to a value of 4096 looks much better. I have to get my face very close to props or walls to block the light. You may even be able to go lower than 4096.

from classic-rbdoom-3-bfg.

mjsonofharry avatar mjsonofharry commented on May 25, 2024

I have some more information for you. Unless I am mistaken, the original flashlight generates light using the muzzle flash logic, i.e. the flashlight beam is just an extended muzzle flash. I have observed that other muzzle flashes have the same problem. For example, if you pay attention to the light generated when firing the chaingun, you should see a hard edge where the light cuts off, usually visible on the floor. Weapon GUI lights also have hard edges. You can see the chaingun's GUI light cutoff on the view model itself. The plasma gun's GUI light cutoff is only really noticeable if you stand up against a wall because the view model is relatively narrow.

All of this leads me to believe that the problem is related to how the game handles light emitting materials. I don't know how the BFG flashlight works, but my best guess is that it's a different kind of dynamic light.

Update: I'm not able to to reproduce any of the problems we've talked about in the latest preview release of RBDOOM-3-BFG. I'm not sure what this means, though, since I don't know where or when the projects diverge.

from classic-rbdoom-3-bfg.

RinMaru avatar RinMaru commented on May 25, 2024

looks like this is caused by View Model Field Of View. putting it at max causes cut off but putting it at lowest fixes it. unless this is just cause i use BFG Mix

from classic-rbdoom-3-bfg.

MadDeCoDeR avatar MadDeCoDeR commented on May 25, 2024

looks like this is caused by field of view model. putting it at max causes cut off but putting it at lowest fixes it. unless this is just cause i use BFG Mix

Nah, BFG Mix only adds battery life to the original flashlight. Nothing too graphical.

from classic-rbdoom-3-bfg.

RinMaru avatar RinMaru commented on May 25, 2024

yea then i got it fixed i guess. otherwise this can be closed unless you have some ideas for a fix with max FOV. it also causes issues with some weapons that cast light like the machine gun

from classic-rbdoom-3-bfg.

RinMaru avatar RinMaru commented on May 25, 2024

ok also tried Original and it is indeed due to View Model Field Of View @mjsonofharry plz try going to Advanced options and setting the view model all the way to the left and try the flashlight again

Edit: I think this can be closed in favor of #25

from classic-rbdoom-3-bfg.

Related Issues (20)

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.