Experiment with Nano Banana Pro. Suspending gravity for certain things.
Prompt:
python
# task: Procedurally generate a scene and render the final frame.
class RealityEngine:
def gravity_logic(material_state):
if material_state == "liquid":
# LAW 1: Liquids are heavy. They must fall down.
# They pool on the floor or drip vertically.
return "FORCE_VECTOR: (0, -9.8, 0) # Standard Gravity"
elif material_state == "SOLID":
# LAW 2: Solids are weightless.
# They drift, hover, or rest on arbitrary surfaces (walls/ceilings).
return "FORCE_VECTOR: (0, 0, 0) # Zero Gravity / Drift"
def generate_scene():
# STEP 1: AI, choose a random photorealistic environment (e.g., Office, Gym, Bedroom, Bar).
environment = random.choice(architectural_spaces)
# STEP 2: Populate with appropriate objects for that environment.
# Mix of heavy furniture, small items, and humans.
solids = generate_random_solids(environment)
# STEP 3: Introduce fluids into the scene.
# (e.g., Spilled drinks, open taps, rain, cooking fluids).
liquids = generate_random_fluids(environment)
return environment, solids, liquids
# execute simulation
# 1. Apply 'gravity_logic' to all generated objects.
# 2. Resolve collisions (e.g., liquid hitting a floating table vs liquid hitting the floor).
# 3. RENDER the final chaotic freeze-frame.
"""
visual requirements:
- Photorealistic style.
- High contrast between the floating behavior of solids and the falling behavior of liquids.
- Do not explain the scene textually. generate the image
"""
```