Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Darkplaces Code

#1
Has anyone messed with the engine code? It's a nasty mess with very little in the way of comments. I'm looking for the offset mapping shader, but I've been going in circles. I am determined to shred this code to pieces till I understand it. I want to optimize a good chunk of it if possible, it feels slow sometimes.
Reply

#2
grep "offsetmapping" *.c


--> gl_rmain.c

static const char *builtinshaderstring
Reply

#3
Ahhh, duh, though win7 doesn't have grep Sad That's what I was worried about, I didn't see any references to shader code. Means LH didn't write his own...

Edit:
Nvm, it's a large string, parsed by GL? Who cares...I'll start sorting through it.
Reply

#4
Hmmm... doesn't Win7 have some sort of indexing service for a fulltext search on files?

Anyway, yes, GLSL shaders are delivered as sourcecode to the driver, which then compiles them, optimizing for the hardware present.

Same is true for Cg. I think this also applies to HLSL, less sure on that, though.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  [TUTORIAL] How to create a command - DarkPlaces engine C programming LegendGuard 1 1,142 03-31-2021, 03:43 PM
Last Post: LegendGuard
  Source code for Peach Mod daveblanchard 4 792 03-30-2021, 10:34 AM
Last Post: LegendGuard
  What was easy for you in development? (Darkplaces and QuakeC programming) LegendGuard 2 1,037 08-08-2020, 05:25 PM
Last Post: LegendGuard
  [META] DarkPlaces fork Lyberta 20 6,796 07-22-2020, 12:58 PM
Last Post: Cloudwalk
  Trying to understand darkplaces source code wiefie 22 10,095 09-22-2017, 08:28 AM
Last Post: wiefie
  Module (music) support for Darkplaces (again) [test it] nilyt 8 6,343 04-21-2015, 08:24 PM
Last Post: BuddyFriendGuy
  Altering Xonotic Source Code perljamz10 7 10,510 02-26-2013, 06:19 PM
Last Post: Mr. Bougo
  darkplaces wiki down .... hutty 4 5,821 10-13-2012, 09:47 PM
Last Post: hutty
  Parallelization of Xonotic (and Darkplaces engine) Sarge999 19 17,039 11-21-2011, 03:22 PM
Last Post: Sarge999
  Planning to help with the code - where to start? Exitium 10 8,119 09-19-2011, 10:25 AM
Last Post: Lord Canistra

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-